summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-17 16:16:57 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-17 16:16:57 +0200
commit4192a2be512d211c93d13728fee54433f40c35c0 (patch)
treea6cd8bb9c34192497e6b1fa89f147fa15eb11c14 /toolchain
parent84c31b40f46deb658835e30944fc5f8526988752 (diff)
use -static-libgcc for musl compile, required for x86_64 build
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/musl/patches/0.9.12/libgcc.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/musl/patches/0.9.12/libgcc.patch b/toolchain/musl/patches/0.9.12/libgcc.patch
new file mode 100644
index 000000000..d382ef1fa
--- /dev/null
+++ b/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)
+