eclass: add support to toolchain.eclass for musl
authorJory Pratt <anarchy@gentoo.org>
Fri, 24 May 2019 03:16:41 +0000 (22:16 -0500)
committerJory Pratt <anarchy@gentoo.org>
Fri, 24 May 2019 03:19:22 +0000 (22:19 -0500)
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
eclass/toolchain.eclass

index 9df8ecf69beacdc2fd3da9d1d3ca6020ae98d407..cf6a953372198df828a92ee3ac7e3ecb4c10bfed 100644 (file)
@@ -1112,6 +1112,9 @@ toolchain_src_configure() {
        *-elf|*-eabi)
                confgcc+=( --with-newlib )
                ;;
+       *-musl*)
+               confgcc+=( --enable-__cxa_atexit )
+               ;;
        *-gnu*)
                confgcc+=(
                        --enable-__cxa_atexit