Please review the proposed changes for musl support. We would like to get this landed on the tree ASAP so we can drop the eclass from the musl overlay. This is one of the first steps to getting things moved to tree so we can depreciate the overlay.
Thanks, Jory
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 9df8ecf69..91297c0fa 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1112,6 +1112,9 @@ toolchain_src_configure() {
*-elf|*-eabi)
confgcc+=( --with-newlib )
;;
+ *-musl*)
+ confgcc+=( --enable-__cxa_atexit )
+ ;;
*-gnu*)
confgcc+=(
--enable-__cxa_atexit
@@ -2467,12 +2470,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
signature.asc
Description: OpenPGP digital signature
