On 5/20/19 4:41 PM, Jory A. Pratt wrote: > + *-musl*) > + confgcc+=( --enable-__cxa_atexit ) > + ;; As Zorry noted in #Gentoo-hardened, we do not support anything less then GCC-8 for musl right now so no need to add the stable ssp/pie blocks.
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 9df8ecf69..cf6a95337 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
signature.asc
Description: OpenPGP digital signature
