Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git] / Externals / cross-compiler / patches / gcc / gcc / config / acess2.h
1 #undef TARGET_OS_CPP_BUILTINS
2 #define TARGET_OS_CPP_BUILTINS()      \
3   do {                                \
4     builtin_define_std ("acess2");      \
5     builtin_define_std ("unix");      \
6     builtin_assert ("system=acess2");   \
7     builtin_assert ("system=unix");   \
8     builtin_assert ("system=posix");   \
9   } while(0);
10
11 #define LIB_SPEC        "-lc -lld-acess -lposix %{pthread:-lpthread}"
12 #define LIBSTDCXX "c++"
13 #undef STARTFILE_SPEC
14 #undef ENDFILE_SPEC
15 #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}"
16 #define ENDFILE_SPEC    "%{static:crtendT.o%s;shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
17 #undef LINK_SPEC
18 #define LINK_SPEC       "%{shared:-shared} %{!shared:%{!static:%{rdynamic:-export-dynamic}%{!dynamic-linker:-dynamic-linker /Acess/Libs/ld-acess.so}}}"
19
20 /*
21 #undef TARGET_VERSION                                     // note that adding these two lines cause an error in gcc-4.7.0
22 #define TARGET_VERSION fprintf(stderr, " (i386 acess2)"); // the build process works fine without them until someone can work out an alternative
23 */
24

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