mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-04-19 15:34:58 +02:00

at least mips support is broken, but microblazed and possibly other archs work. while building mips the following error was encountered: Mode = sf\|df Suffix = si\|2\|3 /tmp/musl-cross-make/gcc-4.9.3/build0/./gcc/xgcc -B/tmp/musl-cross-make/gcc-4.9.3/build0/./gcc/ -B/tmp/musl-cross-make/output/mips-linux-musl/bin/ -B/tmp/musl-cross-make/output/mips-linux-musl/lib/ -isystem /tmp/musl-cross-make/output/mips-linux-musl/include -isystem /tmp/musl-cross-make/output/mips-linux-musl/sys-include -g -O2 -O0 -g0 -minterlink-mips16 -O2 -g -O2 -O0 -g0 -minterlink-mips16 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fPIC -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -DHAVE_CC_TLS -o subsf3.o -MT subsf3.o -MD -MP -MF subsf3.dep subsf3 -c ../../../libgcc/config/hardfp.c -fvisibility=hidden -DHIDE_EXPORTS -Wno-missing-prototypes xgcc: error: subsf3: No such file or directory make[3]: *** [subsf3.o] Error 1 this seems like a bug in a shell command that's invoked during the build, possibly a sed command using GNU-only syntax.
19 lines
657 B
Diff
19 lines
657 B
Diff
# HG changeset patch
|
|
# Parent 270d6afd029dd396b69553e1d96f35d2ebdd2f99
|
|
Support for mips-linux-musl.
|
|
|
|
diff -r 270d6afd029d gcc/config/mips/linux.h
|
|
--- a/gcc/config/mips/linux.h Sun Jul 26 15:32:25 2015 -0400
|
|
+++ b/gcc/config/mips/linux.h Sun Jul 26 15:32:26 2015 -0400
|
|
@@ -23,3 +23,10 @@
|
|
#undef UCLIBC_DYNAMIC_LINKER
|
|
#define UCLIBC_DYNAMIC_LINKER \
|
|
"%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
|
|
+
|
|
+#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
|
|
+#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
|
|
+#else
|
|
+#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
|
|
+#endif
|
|
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
|