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