improve gcc wrapper to support -nostdlib, -nostartfiles
authorRich Felker <dalias@aerifal.cx>
Fri, 3 Feb 2012 04:54:46 +0000 (23:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 3 Feb 2012 04:54:46 +0000 (23:54 -0500)
tools/gen-musl-gcc.sh

index edc4084..b727a8e 100644 (file)
@@ -29,7 +29,7 @@ for i ; do
 case "$skip$i" in
 -I|-L) skip=--- ; continue ;;
 -[cSE]|-M*) nolink=1 ;;
--shared) nocrt=1 ;;
+-shared|-nostartfiles|-nostdlib) nocrt=1 ;;
 -*) ;;
 *) havefile=1 ;;
 esac