summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2016-12-25 22:59:29 +0100
committerFabian Groffen <grobian@gentoo.org>2016-12-25 22:59:49 +0100
commitdcef9e9c52c6d4b9b473838c669c54ad2b418b6f (patch)
tree7fe1abbb5bb9f8f0db85266237cb11c0b0554f8f /dev-util
parentapp-arch/libarchive: undo linking fix, it wasn't broken in the first place (diff)
downloadgentoo-dcef9e9c52c6d4b9b473838c669c54ad2b418b6f.tar.gz
gentoo-dcef9e9c52c6d4b9b473838c669c54ad2b418b6f.tar.bz2
gentoo-dcef9e9c52c6d4b9b473838c669c54ad2b418b6f.zip
dev-util/cmake: fix linking on Solaris
Package-Manager: portage-2.2.28-prefix
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cmake/cmake-3.7.1.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-util/cmake/cmake-3.7.1.ebuild b/dev-util/cmake/cmake-3.7.1.ebuild
index 7bda50dc1570..422a96f059b4 100644
--- a/dev-util/cmake/cmake-3.7.1.ebuild
+++ b/dev-util/cmake/cmake-3.7.1.ebuild
@@ -5,7 +5,7 @@
EAPI=6
CMAKE_REMOVE_MODULES="no"
-inherit bash-completion-r1 elisp-common toolchain-funcs eutils versionator cmake-utils virtualx
+inherit bash-completion-r1 elisp-common toolchain-funcs eutils versionator cmake-utils virtualx flag-o-matic
MY_P="${P/_/-}"
@@ -135,6 +135,9 @@ src_prepare() {
}
src_configure() {
+ # Fix linking on Solaris
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+
local mycmakeargs=(
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=$(usex system-jsoncpp)