[gentoo-dev] Re: toolchain.eclass musl changes

2019-05-21 Thread Joshua Kinard
On 5/20/2019 17:41, Jory A. Pratt wrote:
> 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

Slightly off-topic, but I am actually trying to manually build a musl
MIPS-III o32 seed stage (big-endian) using OpenADK as a base.  Haven't
gotten to gcc yet (the OpenADK base has 8.3.0), but any documentation or
other useful bits of info stored someplace that I oughta know about?

-- 
Joshua Kinard
Gentoo/MIPS
ku...@gentoo.org
rsa6144/5C63F4E3F5C6C943 2015-04-27
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943

"The past tempts us, the present confuses us, the future frightens us.  And
our lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic



[gentoo-dev] Re: toolchain.eclass musl changes

2019-05-20 Thread Jory A. Pratt
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