summary refs log tree commit diff
path: root/pkgs/build-support/gcc-wrapper/setup-hook.sh
diff options
context:
space:
mode:
authorEric Seidel <gridaphobe@gmail.com>2015-01-09 11:22:12 -0800
committerEric Seidel <gridaphobe@gmail.com>2015-01-14 20:26:56 -0800
commit48f63c2f2e3752df2a0b73cad9b9bba9eda8ac60 (patch)
tree6081b12a343a31bcc0dcf3f50b3a891f80d12bb1 /pkgs/build-support/gcc-wrapper/setup-hook.sh
parente38c351f2b06f866537a3d584d1f9b95bdf25a0e (diff)
rename gcc-wrapper to cc-wrapper.
also makes cc-wrapper compatible with clang in the darwin fork.
Diffstat (limited to 'pkgs/build-support/gcc-wrapper/setup-hook.sh')
-rw-r--r--pkgs/build-support/gcc-wrapper/setup-hook.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/pkgs/build-support/gcc-wrapper/setup-hook.sh b/pkgs/build-support/gcc-wrapper/setup-hook.sh
deleted file mode 100644
index f0034fee1bed6..0000000000000
--- a/pkgs/build-support/gcc-wrapper/setup-hook.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-export NIX_CC=@out@
-
-addCVars () {
-    if [ -d $1/include ]; then
-        export NIX_CFLAGS_COMPILE+=" -isystem $1/include"
-    fi
-
-    if [ -d $1/lib64 -a ! -L $1/lib64 ]; then
-        export NIX_LDFLAGS+=" -L$1/lib64"
-    fi
-
-    if [ -d $1/lib ]; then
-        export NIX_LDFLAGS+=" -L$1/lib"
-    fi
-}
-
-envHooks+=(addCVars)
-
-# Note: these come *after* $out in the PATH (see setup.sh).
-
-if [ -n "@gcc@" ]; then
-    addToSearchPath PATH @gcc@/bin
-fi
-
-if [ -n "@binutils@" ]; then
-    addToSearchPath PATH @binutils@/bin
-fi
-
-if [ -n "@libc@" ]; then
-    addToSearchPath PATH @libc@/bin
-fi
-
-if [ -n "@coreutils@" ]; then
-    addToSearchPath PATH @coreutils@/bin
-fi
-
-export CC=cc
-export CXX=c++