summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2019-01-19 13:36:07 -0500
committerAnthony G. Basile <blueness@gentoo.org>2019-01-19 13:36:07 -0500
commitefd4e81c082cd6a97b2c85fa82a8cfe72adfa904 (patch)
treee1a73d13b0831db800e95cda650669539f336e9c /dev-libs/libsodium
parentapp-emulation/lxd: Bump to 3.9 (diff)
downloadgentoo-efd4e81c082cd6a97b2c85fa82a8cfe72adfa904.tar.gz
gentoo-efd4e81c082cd6a97b2c85fa82a8cfe72adfa904.tar.bz2
gentoo-efd4e81c082cd6a97b2c85fa82a8cfe72adfa904.zip
dev-libs/libsodium: add support on musl
Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-libs/libsodium')
-rw-r--r--dev-libs/libsodium/libsodium-1.0.15-r1.ebuild4
-rw-r--r--dev-libs/libsodium/libsodium-1.0.16-r2.ebuild6
-rw-r--r--dev-libs/libsodium/libsodium-1.0.17.ebuild4
3 files changed, 12 insertions, 2 deletions
diff --git a/dev-libs/libsodium/libsodium-1.0.15-r1.ebuild b/dev-libs/libsodium/libsodium-1.0.15-r1.ebuild
index cbf53540a9cf..ae0419e4c365 100644
--- a/dev-libs/libsodium/libsodium-1.0.15-r1.ebuild
+++ b/dev-libs/libsodium/libsodium-1.0.15-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -26,6 +26,8 @@ src_configure() {
# --disable-pie needed on x86, bug #512734
use x86 && myconf="${myconf} --disable-pie"
+ # --disable-ssp is needed on musl x86
+ use x86 && use elibc_musl && myconf+="${myconf} --disable-ssp"
econf \
$(use_enable asm) \
diff --git a/dev-libs/libsodium/libsodium-1.0.16-r2.ebuild b/dev-libs/libsodium/libsodium-1.0.16-r2.ebuild
index 393a0f21ab8e..fe6573407753 100644
--- a/dev-libs/libsodium/libsodium-1.0.16-r2.ebuild
+++ b/dev-libs/libsodium/libsodium-1.0.16-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -28,6 +28,10 @@ multilib_src_configure() {
# --disable-pie is needed on x86, see bug #512734
if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]]; then
myconf="${myconf} --disable-pie"
+ # --disable-ssp is needed on musl x86
+ if use elibc_musl; then
+ myconf+="${myconf} --disable-ssp"
+ fi
fi
econf \
diff --git a/dev-libs/libsodium/libsodium-1.0.17.ebuild b/dev-libs/libsodium/libsodium-1.0.17.ebuild
index dcfe073f5754..ca8df8c8f25f 100644
--- a/dev-libs/libsodium/libsodium-1.0.17.ebuild
+++ b/dev-libs/libsodium/libsodium-1.0.17.ebuild
@@ -34,6 +34,10 @@ multilib_src_configure() {
# --disable-pie is needed on x86, see bug #512734
if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]]; then
myeconfargs+=( --disable-pie )
+ # --disable-ssp is needed on musl x86
+ if use elibc_musl; then
+ myeconfargs+=( --disable-ssp )
+ fi
fi
ECONF_SOURCE="${S}" econf ${myeconfargs[@]}