From 7dad9c212587267818de919dd9c5886f18f99779 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 2 Aug 2018 19:15:48 -0400 Subject: [PATCH] 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. --- tools/musl-gcc.specs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 <