⛏️ index : buildtools.git

author Alexander von Gluck IV <kallisti5@unixzen.com> 2014-01-14 17:52:48.0 -06:00:00
committer Alexander von Gluck IV <kallisti5@unixzen.com> 2014-01-14 17:52:48.0 -06:00:00
commit
fd576c8d8a83e3fe9a6443f9c0431bd11125314e [patch]
tree
1849aa24ea49135ee8c91d4365c1ea0565557093
parent
abc7211782a6eb447522fae39f956fedc12cb979
download
fd576c8d8a83e3fe9a6443f9c0431bd11125314e.tar.gz

gcc: Adjust gcc header search paths

* Drop /boot/common header paths
  I don't think pre-pm haiku will build anyway
  without using an older buildtools.
* Add secondary arch os header directories.
  Anything secondary arch that provides os
  headers will break without the proper search
  paths in gcc.
* Fixes secondary packages that depend on the
  OpenGL kit

Diff

 gcc/gcc/config/haiku.h             | 24 +++++++++++++++++++++++-
 legacy/gcc/gcc/config/i386/haiku.h | 26 ++++++++++++++++++++++++--
 2 files changed, 41 insertions(+), 9 deletions(-)

diff --git a/gcc/gcc/config/haiku.h b/gcc/gcc/config/haiku.h
index 8265616..63123d7 100644
--- a/gcc/gcc/config/haiku.h
+++ b/gcc/gcc/config/haiku.h
@@ -78,8 +78,7 @@
    { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, \
    { FIXED_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, \
    { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1, 0, 0 }, \
    { "/boot/common/non-packaged/develop/headers/" HYBRID_SECONDARY, 0, 0, 0, 1, 0 }, \
    { "/boot/common/develop/headers/" HYBRID_SECONDARY, 0, 0, 0, 1, 0 }, \
    { "/boot/system/non-packaged/develop/headers/" HYBRID_SECONDARY, 0, 0, 0, 1, 0 }, \
    { "/boot/system/develop/headers/os", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/os/app", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/os/device", 0, 0, 1, 1, 0 }, \
@@ -112,6 +111,24 @@
    { "/boot/system/develop/headers/gnu", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/posix", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY, 0, 0, 0, 1, 0 }, \
        /* Hybrid secondary folders for os kits not in base haiku package */\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/app", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/device", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/drivers", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/game", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/interface", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/kernel", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/locale", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/mail", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/media", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/midi", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/midi2", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/net", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/opengl", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/storage", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/support", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/translation", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers", 0, 0, 0, 1, 0 }, \
    { 0, 0, 0, 0, 0, 0 } \
}
@@ -129,8 +146,7 @@
    { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, \
    { FIXED_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, \
    { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1, 0, 0 }, \
    { "/boot/common/non-packaged/develop/headers", 0, 0, 0, 1, 0 }, \
    { "/boot/common/develop/headers", 0, 0, 0, 1, 0 }, \
    { "/boot/system/non-packaged/develop/headers", 0, 0, 0, 1, 0 }, \
    { "/boot/system/develop/headers/os", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/os/app", 0, 0, 1, 1, 0 }, \
    { "/boot/system/develop/headers/os/device", 0, 0, 1, 1, 0 }, \
diff --git a/legacy/gcc/gcc/config/i386/haiku.h b/legacy/gcc/gcc/config/i386/haiku.h
index cc0e853..96f536f 100644
--- a/legacy/gcc/gcc/config/i386/haiku.h
+++ b/legacy/gcc/gcc/config/i386/haiku.h
@@ -364,8 +364,7 @@
    { \
    { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 },\
    { GCC_INCLUDE_DIR, "GCC", 0, 0 },\
    { "/boot/common/non-packaged/develop/headers", 0, 0, 0 },\
    { "/boot/common/develop/headers", 0, 0, 0 },\
    { "/boot/system/non-packaged/develop/headers", 0, 0, 0 },\
    { "/boot/system/develop/headers/os", 0, 0, 1 },\
    { "/boot/system/develop/headers/os/app", 0, 0, 1 },\
    { "/boot/system/develop/headers/os/device", 0, 0, 1 },\
@@ -404,8 +403,7 @@
    { \
    { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 },\
    { GCC_INCLUDE_DIR, "GCC", 0, 0 },\
    { "/boot/common/non-packaged/develop/headers/" HYBRID_SECONDARY, 0, 0, 0 },\
    { "/boot/common/develop/headers/" HYBRID_SECONDARY, 0, 0, 0 },\
    { "/boot/system/non-packaged/develop/headers/" HYBRID_SECONDARY, 0, 0, 0 },\
    { "/boot/system/develop/headers/os", 0, 0, 1 },\
    { "/boot/system/develop/headers/os/app", 0, 0, 1 },\
    { "/boot/system/develop/headers/os/device", 0, 0, 1 },\
@@ -436,7 +434,25 @@
    { "/boot/system/develop/headers/glibc", 0, 0, 1 },\
    { "/boot/system/develop/headers/gnu", 0, 0, 1 },\
    { "/boot/system/develop/headers/posix", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY, 0, 0, 0 }, \
    { "/boot/system/develop/headers/" HYBRID_SECONDARY, 0, 0, 0 },\
        /* Hybrid secondary folders for os kits not in base haiku package */\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/app", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/device", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/drivers", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/game", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/interface", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/kernel", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/locale", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/mail", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/media", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/midi", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/midi2", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/net", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/opengl", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/storage", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/support", 0, 0, 1 },\
    { "/boot/system/develop/headers/" HYBRID_SECONDARY "/os/translation", 0, 0, 1 },\
    { "/boot/system/develop/headers", 0, 0, 0 }, \
    { 0, 0, 0, 0 } \
    };