2004-03-08 17:02:46 +01:00
|
|
|
addCVars () {
|
|
|
|
if test -d $1/include; then
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$1/include"
|
|
|
|
fi
|
|
|
|
|
2006-10-24 15:50:21 +02:00
|
|
|
if test -d $1/lib64; then
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib64"
|
|
|
|
fi
|
|
|
|
|
2004-03-08 17:02:46 +01:00
|
|
|
if test -d $1/lib; then
|
2004-04-05 00:02:41 +02:00
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib"
|
2004-03-08 17:02:46 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
envHooks=(${envHooks[@]} addCVars)
|
|
|
|
|
2004-03-09 18:08:41 +01:00
|
|
|
# Note: these come *after* $out in the PATH (see setup.sh).
|
|
|
|
|
|
|
|
if test -n "@gcc@"; then
|
|
|
|
PATH=$PATH:@gcc@/bin
|
2004-03-08 17:02:46 +01:00
|
|
|
fi
|
2004-03-08 19:29:08 +01:00
|
|
|
|
2004-03-09 18:08:41 +01:00
|
|
|
if test -n "@binutils@"; then
|
|
|
|
PATH=$PATH:@binutils@/bin
|
|
|
|
fi
|
|
|
|
|
2006-10-24 20:26:23 +02:00
|
|
|
if test -n "@libc@"; then
|
|
|
|
PATH=$PATH:@libc@/bin
|
2004-03-09 18:08:41 +01:00
|
|
|
fi
|