gcc-wrapper: Use -isystem instead of -I
This mostly matters for "gcc -MMD", which distinguishes between user and system header files.
This commit is contained in:
parent
a9a3ed1084
commit
51713fbbfc
@ -1,6 +1,6 @@
|
|||||||
addCVars () {
|
addCVars () {
|
||||||
if test -d $1/include; then
|
if test -d $1/include; then
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$1/include"
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -isystem $1/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -d $1/lib64; then
|
if test -d $1/lib64; then
|
||||||
|
Loading…
Reference in New Issue
Block a user