gcc wrapper improvement: leave libgcc dir in the library path
authorRich Felker <dalias@aerifal.cx>
Tue, 24 Jul 2012 03:29:03 +0000 (23:29 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 24 Jul 2012 03:29:03 +0000 (23:29 -0400)
this is needed in case -lgcc is passed explicitly on the link command
line, for example if the wrapper is being used to build musl itself.

tools/musl-gcc.specs.sh

index 5f6504e..3e88c5d 100644 (file)
@@ -11,7 +11,7 @@ cat <<EOF
 %(cc1_cpu) -nostdinc -isystem $incdir 
 
 *link_libgcc:
 %(cc1_cpu) -nostdinc -isystem $incdir 
 
 *link_libgcc:
--L$libdir
+-L$libdir -L .%s
 
 *libgcc:
 libgcc.a%s %:if-exists(libgcc_eh.a%s)
 
 *libgcc:
 libgcc.a%s %:if-exists(libgcc_eh.a%s)