gcc: add /posix/include to cross compiler toolchain
This commit is contained in:
parent
219d3b8cc1
commit
9f0c429895
@ -30,10 +30,10 @@
|
|||||||
#define MD_STARTFILE_PREFIX "/arch/amd64/lib/"
|
#define MD_STARTFILE_PREFIX "/arch/amd64/lib/"
|
||||||
|
|
||||||
#undef GPLUSPLUS_INCLUDE_DIR
|
#undef GPLUSPLUS_INCLUDE_DIR
|
||||||
#define GPLUSPLUS_INCLUDE_DIR "/sys/posix/g++"
|
#define GPLUSPLUS_INCLUDE_DIR "/posix/g++"
|
||||||
|
|
||||||
#undef GCC_INCLUDE_DIR
|
#undef GCC_INCLUDE_DIR
|
||||||
#define GCC_INCLUDE_DIR "/sys/posix/gcc"
|
#define GCC_INCLUDE_DIR "/posix/gcc"
|
||||||
|
|
||||||
/* Architecture specific header (u.h) goes here (from config.gcc) */
|
/* Architecture specific header (u.h) goes here (from config.gcc) */
|
||||||
#define ARCH_INCLUDE_DIR NATIVE_SYSTEM_HEADER_DIR
|
#define ARCH_INCLUDE_DIR NATIVE_SYSTEM_HEADER_DIR
|
||||||
@ -41,6 +41,8 @@
|
|||||||
/* The default include dir is /sys/include but... */
|
/* The default include dir is /sys/include but... */
|
||||||
#define PORTABLE_INCLUDE_DIR "/sys/include"
|
#define PORTABLE_INCLUDE_DIR "/sys/include"
|
||||||
|
|
||||||
|
#define POSIX_INCLUDE_DIR "/posix/include"
|
||||||
|
|
||||||
/* ...we have to wrap libc.h and stdio.h with basic POSIX headers */
|
/* ...we have to wrap libc.h and stdio.h with basic POSIX headers */
|
||||||
#define BASIC_POSIX_INCLUDE_DIR "/sys/include/apw"
|
#define BASIC_POSIX_INCLUDE_DIR "/sys/include/apw"
|
||||||
|
|
||||||
@ -49,6 +51,7 @@
|
|||||||
{ \
|
{ \
|
||||||
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 1, 0 }, \
|
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 1, 0 }, \
|
||||||
{ GCC_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
{ GCC_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
||||||
|
{ POSIX_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
||||||
{ BASIC_POSIX_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
{ BASIC_POSIX_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
||||||
{ ARCH_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
{ ARCH_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
||||||
{ PORTABLE_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
{ PORTABLE_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
|
||||||
@ -85,4 +88,3 @@
|
|||||||
builtin_define ("__jehanne__"); \
|
builtin_define ("__jehanne__"); \
|
||||||
builtin_assert ("system=jehanne"); \
|
builtin_assert ("system=jehanne"); \
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user