2019-01-08 04:28:53 +01:00
|
|
|
addStackArgs () {
|
2019-03-02 08:21:32 +01:00
|
|
|
if [ -n "$(echo $1/lib/lib*)" ]; then
|
2019-01-08 04:28:53 +01:00
|
|
|
STACK_IN_NIX_EXTRA_ARGS+=" --extra-lib-dirs=$1/lib"
|
|
|
|
fi
|
|
|
|
|
2019-03-02 08:21:32 +01:00
|
|
|
if [ -d "$1/include" ]; then
|
2019-01-08 04:28:53 +01:00
|
|
|
STACK_IN_NIX_EXTRA_ARGS+=" --extra-include-dirs=$1/include"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-03-02 08:21:32 +01:00
|
|
|
addEnvHooks "$targetOffset" addStackArgs
|