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
This commit is contained in:
Anthony G. Basile
2019-01-19 13:36:07 -05:00
parent b562420bd7
commit efd4e81c08
3 changed files with 12 additions and 2 deletions
@@ -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) \
@@ -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 \
@@ -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[@]}