about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/musl-gcc.specs.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
index 5604685a..5f6504e2 100644
--- 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: