about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-01-24 08:20:30 -0600
committerThomas Tuegel <ttuegel@gmail.com>2015-01-26 21:00:39 -0600
commit1fbecd1295d75476ab92c7be483bd4c3dcdc2a87 (patch)
tree5642aa3228eabcbae05d9a18537813b36d241f06 /pkgs/build-support
parent5a52ddb243ef1119f14e93b21ed7a6a451f32d68 (diff)
downloadnixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.tar
nixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.tar.gz
nixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.tar.bz2
nixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.tar.lz
nixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.tar.xz
nixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.tar.zst
nixlib-1fbecd1295d75476ab92c7be483bd4c3dcdc2a87.zip
gcc-wrapper: comment on alternate setup hook
We now have an alternate setup hook for gcc-wrapper that uses -I to add
include paths rather than -isystem. The latter flag can change the
search order specified by the build system. For KDE 5 packages, we don't
want that!
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/gcc-wrapper/setup-hook-stdinc.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/gcc-wrapper/setup-hook-stdinc.sh b/pkgs/build-support/gcc-wrapper/setup-hook-stdinc.sh
index b6a6673575bb..22e778b06904 100644
--- a/pkgs/build-support/gcc-wrapper/setup-hook-stdinc.sh
+++ b/pkgs/build-support/gcc-wrapper/setup-hook-stdinc.sh
@@ -1,3 +1,9 @@
+# This is an alternate setup hook for gcc-wrapper that uses the -I flag to
+# add include search paths instead of -isystem. We need this for some packages
+# because -isystem can change the search order specified by prior -I flags.
+# Changing the search order can point gcc to the wrong package's headers.
+# The -I flag will never change the order of prior flags.
+
 export NIX_CC=@out@
 
 addCVars () {