mirror of git://git.musl-libc.org/musl
make gcc wrapper rewrite link options rather than just extending them
this is not tested yet, but should work to get rid of unwanted --hash-style=gnu hacks present in some distro-patched gcc versions.
This commit is contained in:
parent
f7d15dcc54
commit
6e0ad2277a
|
@ -22,10 +22,8 @@ libgcc.a%s %:if-exists(libgcc_eh.a%s)
|
||||||
*endfile:
|
*endfile:
|
||||||
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
||||||
|
|
||||||
%rename link old_link
|
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%(old_link) -dynamic-linker $ldso -nostdlib
|
-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
|
||||||
|
|
||||||
*esp_link:
|
*esp_link:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue