From 5c5db474436b3c6beee05741076d561e61bf8728 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Mar 2004 10:36:45 +0000 Subject: [PATCH] * Set a flag to indicate whether we're doing a native build. svn path=/nixpkgs/trunk/; revision=821 --- pkgs/build-support/gcc-wrapper/setup-hook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/gcc-wrapper/setup-hook.sh b/pkgs/build-support/gcc-wrapper/setup-hook.sh index 07c3b54b4730..cc20c5f94829 100644 --- a/pkgs/build-support/gcc-wrapper/setup-hook.sh +++ b/pkgs/build-support/gcc-wrapper/setup-hook.sh @@ -10,7 +10,8 @@ addCVars () { envHooks=(${envHooks[@]} addCVars) -if test -z "@isNative@"; then +export NIX_IS_NATIVE=@isNative@ +if test -z "$NIX_IS_NATIVE"; then PATH=$PATH:@gcc@/bin:@glibc@/bin fi