1 |
commit: 45ca5ae4f59b9e368fbfdd7b11109aaef420f1d3 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 27 07:39:18 2011 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 6 19:50:12 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=45ca5ae4 |
7 |
|
8 |
Refactor USE=static cmake code. |
9 |
|
10 |
--- |
11 |
eclass/mysql-cmake.eclass | 7 +------ |
12 |
1 files changed, 1 insertions(+), 6 deletions(-) |
13 |
|
14 |
diff --git a/eclass/mysql-cmake.eclass b/eclass/mysql-cmake.eclass |
15 |
index 0e8e415..f64f9e5 100644 |
16 |
--- a/eclass/mysql-cmake.eclass |
17 |
+++ b/eclass/mysql-cmake.eclass |
18 |
@@ -123,13 +123,8 @@ configure_cmake_standard() { |
19 |
-DWITHOUT_LIBWRAP=1 |
20 |
) |
21 |
|
22 |
- if use static ; then |
23 |
- mycmakeargs+=( -DDISABLE_SHARED=1 ) |
24 |
- else |
25 |
- mycmakeargs+=( -DDISABLED_SHARED=0 ) |
26 |
- fi |
27 |
- |
28 |
mycmakeargs+=( |
29 |
+ $(cmake-utils_use_disable !static SHARED) |
30 |
$(cmake-utils_use_with debug) |
31 |
$(cmake-utils_use_with embedded EMBEDDED_SERVER) |
32 |
$(cmake-utils_use_with profiling) |