projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7d15dc
)
make gcc wrapper rewrite link options rather than just extending them
author
Rich Felker
<dalias@aerifal.cx>
Wed, 6 Jun 2012 19:48:06 +0000
(15:48 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 6 Jun 2012 19:48:06 +0000
(15:48 -0400)
this is not tested yet, but should work to get rid of unwanted
--hash-style=gnu hacks present in some distro-patched gcc versions.
tools/musl-gcc.specs.sh
patch
|
blob
|
history
diff --git
a/tools/musl-gcc.specs.sh
b/tools/musl-gcc.specs.sh
index 5604685a79505507e19a28f84f0b99ba3f5686ff..5f6504e2c2fd5c8e57293755cd7821de105080de 100644
(file)
--- a/
tools/musl-gcc.specs.sh
+++ b/
tools/musl-gcc.specs.sh
@@
-22,10
+22,8
@@
libgcc.a%s %:if-exists(libgcc_eh.a%s)
*endfile:
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
-%rename link old_link
-
*link:
-%(old_link) -dynamic-linker $ldso -nostdlib
+-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
*esp_link: