X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=tools%2Fgen-musl-gcc.sh;h=7b80fda624e72335f070b041839860eb46b820f0;hp=edc408466315410a28d3d59637c1f0bd27575ad0;hb=02eb568dedadb3d66c2751aba6bea559370ff32c;hpb=b768c7bc6398e297945b08dd5315cae472279a3a;ds=sidebyside diff --git a/tools/gen-musl-gcc.sh b/tools/gen-musl-gcc.sh index edc40846..7b80fda6 100644 --- a/tools/gen-musl-gcc.sh +++ b/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 @@ -52,7 +52,7 @@ set -- -specs=/proc/self/fd/3 "$@" \ -Wl,-dynamic-linker,"$ldso_pathname" -Wl,-nostdlib } -set -- -std=gnu99 -nostdinc -nostdlib $nosp \ +set -- -nostdinc -nostdlib $nosp \ -isystem "$libc_inc" -isystem "$gcc_inc" "$@" \ -L"$libc_lib" -L"$libgcc"