jam/HeaderRules: Put posix before gcc
* After the gcc 8 upgrade, during bootstrap sources attempt to load limits.h from gcc before they use our limits.h override resulting in undefined NAME_MAX, PATH_MAX, etc. Change-Id: I9204410d0543a033e262124eaf7bcde09db26aa9 Reviewed-on: https://review.haiku-os.org/c/1498 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
parent
b22a59f226
commit
31c38ae2b1
@ -460,21 +460,24 @@ rule FStandardHeaders architecture
|
||||
headers += [ FDirName $(HAIKU_OUTPUT_DIR) clang_headers ] ;
|
||||
}
|
||||
|
||||
# Ordering here is important. We fill out things like limits.h and
|
||||
# gcc only overrides if undefined.
|
||||
|
||||
# The c++ headers.
|
||||
headers += [ C++HeaderDirectories $(architecture) ] ;
|
||||
|
||||
# Use glibc headers
|
||||
headers += [ FDirName $(HAIKU_TOP) headers glibc ] ;
|
||||
|
||||
# Use posix headers directory
|
||||
headers += [ FDirName $(HAIKU_TOP) headers posix ] ;
|
||||
|
||||
# The gcc headers.
|
||||
headers += [ GccHeaderDirectories $(architecture) ] ;
|
||||
|
||||
# Use headers directory, to allow to do things like include <posix/string.h>
|
||||
headers += [ FDirName $(HAIKU_TOP) headers ] ;
|
||||
|
||||
# Use posix headers directory
|
||||
headers += [ FDirName $(HAIKU_TOP) headers posix ] ;
|
||||
|
||||
# Use glibc headers
|
||||
headers += [ FDirName $(HAIKU_TOP) headers glibc ] ;
|
||||
|
||||
# Use public OS header directories
|
||||
headers += [ FDirName $(HAIKU_TOP) headers os ] ;
|
||||
headers += [ PublicHeaders $(osIncludes) ] ;
|
||||
|
Loading…
Reference in New Issue
Block a user