From: Rich Felker Date: Thu, 2 Aug 2018 23:15:48 +0000 (-0400) Subject: fix musl-gcc wrapper to be compatible with default-pie gcc toolchains X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7dad9c212587267818de919dd9c5886f18f99779;p=musl fix musl-gcc wrapper to be compatible with default-pie gcc toolchains the specfile for the wrapper was written assuming output is pie only if -pie appears on the command line. recent (and older patched) versions of gcc can be configured to produce pie output by default, adn when used with such a toolchain, the wrapper linked the wrong startfiles (crt*) containing pic-incompatible code. rather than trying to figure out gcc's default, simply always use the pic-compatible start files. --- diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh index 294e24f7..30492574 100644 --- a/tools/musl-gcc.specs.sh +++ b/tools/musl-gcc.specs.sh @@ -17,10 +17,10 @@ cat <