summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-05 13:34:56 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-05 13:34:56 -0400
commitd81cd6c6de96607699b9fec3166d0fc3c66c254a (patch)
treeaded6c899f48f3a3dcc064ec45a01125acdd829e
parent8557783d1c415384dcdb8482b7e4178979484de5 (diff)
fixed unix build script when compile time foreign function support is disabled
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 7cdf20c..49b3728 100755
--- a/build.sh
+++ b/build.sh
@@ -33,7 +33,9 @@ if [ "$COMPILE_TIME_FOREIGN_FN_SUPPORT" != "no" ]; then
else
LIBRARIES='-ldl -lavcall'
fi
- ADDITIONAL_FLAGS="$ADDITIONAL_FLAGS -DCOMPILE_TIME_FOREIGN_FN_SUPPORT=1 $LIBRARIES"
+ ADDITIONAL_FLAGS="$ADDITIONAL_FLAGS $LIBRARIES"
+else
+ ADDITIONAL_FLAGS="$ADDITIONAL_FLAGS -DCOMPILE_TIME_FOREIGN_FN_SUPPORT=0"
fi