about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-23 23:29:03 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-23 23:29:03 -0400
commit5d26d5d15bf6c2fc8c0e58b76fb418b51e207af7 (patch)
tree9fa82802fd5f8b4dacb4859389027e4788cd860c
parentd426b045332718ae6d42237303d657fd97c51455 (diff)
downloadmusl-5d26d5d15bf6c2fc8c0e58b76fb418b51e207af7.tar.gz
musl-5d26d5d15bf6c2fc8c0e58b76fb418b51e207af7.tar.xz
musl-5d26d5d15bf6c2fc8c0e58b76fb418b51e207af7.zip
gcc wrapper improvement: leave libgcc dir in the library path
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.
-rw-r--r--tools/musl-gcc.specs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
index 5f6504e2..3e88c5d1 100644
--- a/tools/musl-gcc.specs.sh
+++ b/tools/musl-gcc.specs.sh
@@ -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)