gcc: add /posix/include to cross compiler toolchain

This commit is contained in:
Giacomo Tesio 2018-11-26 02:24:46 +01:00
parent 219d3b8cc1
commit 9f0c429895
1 changed files with 5 additions and 3 deletions

View File

@ -30,10 +30,10 @@
#define MD_STARTFILE_PREFIX "/arch/amd64/lib/"
#undef GPLUSPLUS_INCLUDE_DIR
#define GPLUSPLUS_INCLUDE_DIR "/sys/posix/g++"
#define GPLUSPLUS_INCLUDE_DIR "/posix/g++"
#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) */
#define ARCH_INCLUDE_DIR NATIVE_SYSTEM_HEADER_DIR
@ -41,6 +41,8 @@
/* The default include dir is /sys/include but... */
#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 */
#define BASIC_POSIX_INCLUDE_DIR "/sys/include/apw"
@ -49,6 +51,7 @@
{ \
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 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 }, \
{ ARCH_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
{ PORTABLE_INCLUDE_DIR, 0, 0, 0, 1, 0 }, \
@ -85,4 +88,3 @@
builtin_define ("__jehanne__"); \
builtin_assert ("system=jehanne"); \
} while(0);