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 edc408466315410a28d3d59637c1f0bd27575ad0..b727a8ed9e50620e589af09bf32ebd7b0f85a9a6 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