diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-26 13:44:47 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-26 13:46:55 -0500 |
commit | bb701610aaa645644bfa046b30711fc5acb7c6c2 (patch) | |
tree | 2dfaa3a9bb08aec2a92f6e294b2176295b360ccf /extra/scripts | |
parent | 406b1aba4b47c8313f764c68b79eefb697ef5525 (diff) |
buildsys: allow the toolchain to search its dirs for kernel headers
Setting KERNEL_HEADERS up to the exact path all the time is a pita,
especially when the toolchain is often times already configured to
do the right thing. So if the user has set that to "", don't force
any specific paths.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'extra/scripts')
-rwxr-xr-x | extra/scripts/gen_bits_syscall_h.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/extra/scripts/gen_bits_syscall_h.sh b/extra/scripts/gen_bits_syscall_h.sh index f6353baa2..4d42f6949 100755 --- a/extra/scripts/gen_bits_syscall_h.sh +++ b/extra/scripts/gen_bits_syscall_h.sh @@ -15,7 +15,12 @@ # # Warning!!! This does _no_ error checking!!! -INCLUDE_OPTS="-nostdinc -I${KERNEL_HEADERS}" +if [ "${KERNEL_HEADERS:-/}" != "/" ] ; then + INCLUDE_OPTS="-nostdinc -I${KERNEL_HEADERS}" +else + # Let the toolchain use its configure paths. + INCLUDE_OPTS= +fi case $CC in *icc*) CC_SYSNUM_ARGS="-dM" ;; |