gcc-6: change to new library paths
[unleashed-userland.git] / components / developer / gcc-6 / files / unleashed.h
blob833d52fced0ce6f671593bc097c982c350e8b99c
1 /* Operating system specific defines to be used when targeting GCC for any
2 Unleashed
3 Copyright (C) 2002-2014 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #define SIG_ATOMIC_TYPE "int"
23 /* Names to predefine in the preprocessor for this target machine. */
24 #define TARGET_OS_CPP_BUILTINS() \
25 do { \
26 builtin_define_std ("unix"); \
27 builtin_define ("__unleashed__"); \
28 builtin_assert ("system=unix"); \
29 builtin_assert ("system=svr4"); \
30 } while (0)
32 /* Use --as-needed/-z ignore -lgcc_s for eh support. */
33 #ifdef HAVE_LD_AS_NEEDED
34 #define USE_LD_AS_NEEDED 1
35 #endif
37 #undef STARTFILE_SPEC
38 #define STARTFILE_SPEC "%{!shared:%{p|pg:gcrt1.o%s;:crt1.o%s}} " \
39 "crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
40 #undef ENDFILE_SPEC
41 #define ENDFILE_SPEC "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
43 /* XXX our headers should be fixed to use the same integral types for these on both 32 and 64 bit */
44 #undef WCHAR_TYPE
45 #define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int")
46 #undef WCHAR_TYPE_SIZE
47 #define WCHAR_TYPE_SIZE 32
48 #undef WINT_TYPE
49 #define WINT_TYPE (TARGET_64BIT ? "int" : "long int")
50 #undef WINT_TYPE_SIZE
51 #define WINT_TYPE_SIZE 32
53 /* elf_i386 format uses /usr/lib/libc.so.1 as interpreter; elf_i386_ldso would
54 * use ld.so.1, but so does elf_i386_sol2, so let's use that for now. */
55 #define LINK_SPEC "%{m32:-m elf_i386_sol2 -L/lib/i386 -L/lib -L/usr/lib/i386 -L/usr/lib}%{!m32:-m elf_x86_64}" \
56 "%{h*} %{R*} %{shared} %{static} %{symbolic:-Bsymbolic} " \
57 "%{!shared:%{static:%{rdynamic:--export-dynamic}}}"
59 #define STARTFILE_PREFIX_SPEC "%{m32:/lib/i386/ /usr/lib/i386/}%{!m32:/lib/ /lib/amd64/ /usr/lib/ /usr/lib/amd64/}"
61 #undef LIB_SPEC
62 #define LIB_SPEC "%{!shared:%{pthread:-lpthread} %{p|pg:-ldl} -lc}"
64 #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
66 /* The system headers under Solaris 2 are C++-aware since 2.0. */
67 #define NO_IMPLICIT_EXTERN_C
69 /* Allow macro expansion in #pragma pack. */
70 #define HANDLE_PRAGMA_PACK_WITH_EXPANSION
72 #define USE_PT_GNU_EH_FRAME