mirror of git://git.musl-libc.org/musl
use -L/...../ -lgcc instead of /...../libgcc.a in musl-gcc wrapper
this should avoid warnings about unused libs when not linking, and might fix some other obscure issues too. i might replace this approach with a completely different one soon though.
This commit is contained in:
parent
07e9d63b8f
commit
71df8b2760
|
@ -11,6 +11,7 @@ libc_end="$libc_lib/crtn.o"
|
||||||
|
|
||||||
gcc_inc=$libc_inc
|
gcc_inc=$libc_inc
|
||||||
libgcc="`gcc \"$@\" -print-file-name=libgcc.a`"
|
libgcc="`gcc \"$@\" -print-file-name=libgcc.a`"
|
||||||
|
libgcc=${libgcc%libgcc.a}
|
||||||
|
|
||||||
gcc -wrapper sh,-c,'
|
gcc -wrapper sh,-c,'
|
||||||
x= ; y= ; z= ; s= ; for i ; do
|
x= ; y= ; z= ; s= ; for i ; do
|
||||||
|
@ -26,5 +27,5 @@ done
|
||||||
exec "$0" "$@"
|
exec "$0" "$@"
|
||||||
' -std=gnu99 -nostdinc -nostdlib \
|
' -std=gnu99 -nostdinc -nostdlib \
|
||||||
-isystem "$libc_inc" -isystem "$gcc_inc" \
|
-isystem "$libc_inc" -isystem "$gcc_inc" \
|
||||||
-Wl,-xxxxxx "$@" -L"$libc_lib" -lc "$libgcc" -Lxxxxxx -Wl,-nostdlib
|
-Wl,-xxxxxx "$@" -L"$libc_lib" -lc -L"$libgcc" -lgcc -Lxxxxxx -Wl,-nostdlib
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue