Browse Source

use -static-libgcc for musl compile, required for x86_64 build

Waldemar Brodkorb 12 years ago
parent
commit
4192a2be51
1 changed files with 12 additions and 0 deletions
  1. 12 0
      toolchain/musl/patches/0.9.12/libgcc.patch

+ 12 - 0
toolchain/musl/patches/0.9.12/libgcc.patch

@@ -0,0 +1,12 @@
+diff -Nur musl-0.9.12.orig/Makefile musl-0.9.12/Makefile
+--- musl-0.9.12.orig/Makefile	2013-07-29 09:20:33.000000000 +0200
++++ musl-0.9.12/Makefile	2013-08-17 16:10:10.000000000 +0200
+@@ -100,7 +100,7 @@
+ 	$(CC) $(CFLAGS_ALL_SHARED) -c -o $@ $<
+ 
+ lib/libc.so: $(LOBJS)
+-	$(CC) $(CFLAGS_ALL_SHARED) $(LDFLAGS) -nostdlib -shared \
++	$(CC) $(CFLAGS_ALL_SHARED) $(LDFLAGS) -static-libgcc -nostdlib -shared \
+ 	-Wl,-e,_start -Wl,-Bsymbolic-functions \
+ 	-o $@ $(LOBJS) $(LIBCC)
+