diff options
Diffstat (limited to 'net-libs/libssh/libssh-0.9.3.ebuild')
-rw-r--r-- | net-libs/libssh/libssh-0.9.3.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net-libs/libssh/libssh-0.9.3.ebuild b/net-libs/libssh/libssh-0.9.3.ebuild index 5361468d2fe6..06898dc5da51 100644 --- a/net-libs/libssh/libssh-0.9.3.ebuild +++ b/net-libs/libssh/libssh-0.9.3.ebuild @@ -21,7 +21,7 @@ SLOT="0/4" # subslot = soname major version IUSE="debug doc examples gcrypt gssapi libressl mbedtls pcap server +sftp static-libs test zlib" # Maintainer: check IUSE-defaults at DefineOptions.cmake -REQUIRED_USE="?? ( gcrypt mbedtls ) test? ( static-libs )" +REQUIRED_USE="?? ( gcrypt mbedtls )" BDEPEND=" doc? ( app-doc/doxygen[dot] ) @@ -81,7 +81,7 @@ multilib_src_configure() { -DWITH_PCAP="$(usex pcap)" -DWITH_SERVER="$(usex server)" -DWITH_SFTP="$(usex sftp)" - -DBUILD_SHARED_LIBS="$(usex !static-libs)" + -DBUILD_STATIC_LIB="$(usex static-libs)" -DUNIT_TESTING="$(usex test)" -DWITH_ZLIB="$(usex zlib)" ) @@ -100,6 +100,8 @@ multilib_src_install() { cmake-utils_src_install multilib_is_native_abi && use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + use static-libs && dolib.a src/libssh.a + # compatibility symlink until all consumers have been updated # to no longer use libssh_threads.so dosym libssh.so /usr/$(get_libdir)/libssh_threads.so |