diff options
author | 2019-04-11 08:54:43 -0400 | |
---|---|---|
committer | 2019-04-11 08:55:06 -0400 | |
commit | 2734048bc5149bc247fb0482fae9f1f713601e90 (patch) | |
tree | 228524eeb78f24c3b0f9bdb077b8384f38913449 | |
parent | x11-terms/rxvt-unicode: ~arch now supported with main tree (diff) | |
download | musl-2734048b.tar.gz musl-2734048b.tar.bz2 musl-2734048b.zip |
eclass/toolchain.eclass: fix after commit 1fa41385
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index be94db86..a3c901d0 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1104,6 +1104,9 @@ toolchain_src_configure() { *-elf|*-eabi) confgcc+=( --with-newlib ) ;; + *-musl*) + confgcc+=( --enable-__cxa_atexit ) + ;; *-gnu*) confgcc+=( --enable-__cxa_atexit @@ -2455,12 +2458,16 @@ hardened_gcc_is_stable() { if [[ $1 == "pie" ]] ; then if [[ ${CTARGET} == *-uclibc* ]] ; then tocheck=${PIE_UCLIBC_STABLE} - else + elif [[ ${CTARGET} == *-musl* ]] ; then + tocheck=${PIE_MUSL_STABLE} + elif [[ ${CTARGET} == *-gnu* ]] ; then tocheck=${PIE_GLIBC_STABLE} fi elif [[ $1 == "ssp" ]] ; then if [[ ${CTARGET} == *-uclibc* ]] ; then tocheck=${SSP_UCLIBC_STABLE} + elif [[ ${CTARGET} == *-musl* ]] ; then + tocheck=${SSP_MUSL_STABLE} elif [[ ${CTARGET} == *-gnu* ]] ; then tocheck=${SSP_STABLE} fi |