16 lines
332 B
Bash
16 lines
332 B
Bash
|
addCVars () {
|
||
|
if test -d $1/include; then
|
||
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$1/include"
|
||
|
fi
|
||
|
|
||
|
if test -d $1/lib; then
|
||
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib -rpath $1/lib"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
envHooks=(${envHooks[@]} addCVars)
|
||
|
|
||
|
if test -z "@isNative@"; then
|
||
|
PATH=$PATH:@gcc@/bin:@glibc@/bin
|
||
|
fi
|