1 |
From: David Seifert <soap@g.o> |
2 |
|
3 |
* Many upstreams build static libraries by default, as this is |
4 |
simpler for distribution. Developers can still override this |
5 |
variable if required. |
6 |
|
7 |
Examples: |
8 |
https://github.com/pezmaster31/bamtools/blob/master/CMakeLists.txt#L64 |
9 |
--- |
10 |
eclass/cmake-utils.eclass | 1 + |
11 |
1 file changed, 1 insertion(+) |
12 |
|
13 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
14 |
index ed81426ddcc..f180c8c3d7d 100644 |
15 |
--- a/eclass/cmake-utils.eclass |
16 |
+++ b/eclass/cmake-utils.eclass |
17 |
@@ -623,6 +623,7 @@ cmake-utils_src_configure() { |
18 |
if [[ ${EAPI} != [56] ]]; then |
19 |
cat >> "${common_config}" <<- _EOF_ || die |
20 |
SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "") |
21 |
+ SET (BUILD_SHARED_LIBS ON CACHE BOOLEAN "") |
22 |
_EOF_ |
23 |
fi |
24 |
|
25 |
-- |
26 |
2.18.0 |