浏览代码

improve gcc wrapper to support -nostdlib, -nostartfiles

Rich Felker 13 年之前
父节点
当前提交
4f4d6ae985
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/gen-musl-gcc.sh

+ 1 - 1
tools/gen-musl-gcc.sh

@@ -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