Externals/cross-compiler - Fix GCC patchset to emit a correct userland
[tpg/acess2.git] / Externals / cross-compiler / patches / gcc / gcc / config / acess2.h
index ec3c113..44a4e03 100644 (file)
@@ -9,6 +9,12 @@
 
 #define LIB_SPEC       "-lc -lld-acess -lposix"
 #define LIBSTDCXX "c++"
+#undef STARTFILE_SPEC
+#undef ENDFILE_SPEC
+#define STARTFILE_SPEC "crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} %{shared:crt0S.o%s;:crt0.o%s}"
+#define ENDFILE_SPEC   "%{static:crtendT.o%s;shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
+#undef LINK_SPEC
+#define LINK_SPEC      "%{shared:-shared} %{!shared:%{!static:%{rdynamic:-export-dynamic}%{!dynamic-linker:-dynamic-linker /Acess/Libs/ld-acess.so}}}"
 
 /*
 #undef TARGET_VERSION                                     // note that adding these two lines cause an error in gcc-4.7.0

UCC git Repository :: git.ucc.asn.au