mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-08 18:27:07 -08:00
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:
@@ -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[@]}
|
||||
|
||||
Reference in New Issue
Block a user