summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-12-17 12:11:30 -0600
committerJohn Wiegley <johnw@newartisans.com>2014-12-26 11:06:21 -0600
commit28b6fb61e651a3e2cca57d087781e7ba6ab45e7c (patch)
tree1931763370f483739474ebe0ab219eb0d7256c13 /pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
parentce100a5d58799e65684ad948db70638c311369b3 (diff)
Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
Diffstat (limited to 'pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh b/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
index ec1f6004edd9..c15777144e11 100644
--- a/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
+++ b/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
@@ -1,7 +1,7 @@
#! @shell@ -e
-if test -n "$NIX_GCC_WRAPPER_START_HOOK"; then
- source "$NIX_GCC_WRAPPER_START_HOOK"
+if test -n "$NIX_CC_WRAPPER_START_HOOK"; then
+ source "$NIX_CC_WRAPPER_START_HOOK"
fi
if test -z "$NIX_CROSS_GLIBC_FLAGS_SET"; then
@@ -107,8 +107,8 @@ if test "$NIX_DEBUG" = "1"; then
done
fi
-if test -n "$NIX_GCC_WRAPPER_EXEC_HOOK"; then
- source "$NIX_GCC_WRAPPER_EXEC_HOOK"
+if test -n "$NIX_CC_WRAPPER_EXEC_HOOK"; then
+ source "$NIX_CC_WRAPPER_EXEC_HOOK"
fi
# We want gcc to call the wrapper linker, not that of binutils.