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 5f6504e2c2fd5c8e57293755cd7821de105080de..3e88c5d1aabf4674124fe5f5f8a863f48912f84e 100644 (file)
@@ -11,7 +11,7 @@ cat <<EOF
 %(cc1_cpu) -nostdinc -isystem $incdir 
 
 *link_libgcc:
--L$libdir
+-L$libdir -L .%s
 
 *libgcc:
 libgcc.a%s %:if-exists(libgcc_eh.a%s)