X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Externals%2Fcross-compiler%2Fpatches%2Fgcc%2Fgcc%2Fconfig%2Facess2.h;h=a22c5356bd5bf1d4817367e1a4ad605e10dbc068;hb=845b6f9d90bb87b5e760e4d49aa93b0e003ab750;hp=8e998f915f7aebab87ec96daaab0f237dd7f3b90;hpb=5fc2955d2f3e3ffcc10ce713317771b72842d910;p=tpg%2Facess2.git diff --git a/Externals/cross-compiler/patches/gcc/gcc/config/acess2.h b/Externals/cross-compiler/patches/gcc/gcc/config/acess2.h index 8e998f91..a22c5356 100644 --- a/Externals/cross-compiler/patches/gcc/gcc/config/acess2.h +++ b/Externals/cross-compiler/patches/gcc/gcc/config/acess2.h @@ -5,8 +5,18 @@ builtin_define_std ("unix"); \ builtin_assert ("system=acess2"); \ builtin_assert ("system=unix"); \ + builtin_assert ("system=posix"); \ } while(0); +#define LIB_SPEC "-lc -lld-acess -lposix %{pthread:-lpthread}" +#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 #define TARGET_VERSION fprintf(stderr, " (i386 acess2)"); // the build process works fine without them until someone can work out an alternative