[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#823769: doesn't seem to work for non-cross, either



It doesn't seem to work for non-cross builds either.

>From upstream changelog:
# * Support for the musl C library was added for the AArch64, ARM,
#   MicroBlaze, MIPS, MIPS64, PowerPC, PowerPC64, SH, i386, x32 and x86_64
#   targets.  It can be selected using the new -mmusl option in case musl is
#   not the default libc.  GCC defaults to musl libc if it is built with a
#   target triplet matching the *-linux-musl* pattern.

Yet:
[/tmp]$ gcc-6 -Wall -mmusl hello.c
[/tmp]$ ldd a.out
	linux-vdso.so.1 (0x00007ffe34997000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff387f4c000)
	/lib/ld-musl-x86_64.so.1 => /lib64/ld-linux-x86-64.so.2 (0x0000555ba16a0000)
[/tmp]$ gcc-6 -Wall -mmusl -static -s hello.c
[/tmp]$ ls -al a.out 
-rwxr-xr-x 1 kilobyte kilobyte 738648 May  8 21:59 a.out

-- 
How to exploit the Bible for weight loss:
Pr28:25: he that putteth his trust in the ʟᴏʀᴅ shall be made fat.


Reply to: