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