summaryrefslogtreecommitdiff
path: root/bin/build-binary-dist.sh
diff options
context:
space:
mode:
authorThomas Hallgren <th-github@altocumulus.org>2019-11-27 14:31:45 +0100
committerThomas Hallgren <th-github@altocumulus.org>2019-11-27 14:31:45 +0100
commit12e55c93c06263f7f042bc5d8a2c80d6e90b15fa (patch)
tree23512f87497600db339df1f3a7a0685afbe63542 /bin/build-binary-dist.sh
parent33aeb53f7a14018070fec3185653e5e20ee05398 (diff)
Fix another build problem in bin/build-binary-dist.sh
Make sure the dynamic C runtime libraries are found when running GF to compile the RGL
Diffstat (limited to 'bin/build-binary-dist.sh')
-rwxr-xr-xbin/build-binary-dist.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/build-binary-dist.sh b/bin/build-binary-dist.sh
index 4be61379a..7f6ca5d72 100755
--- a/bin/build-binary-dist.sh
+++ b/bin/build-binary-dist.sh
@@ -64,10 +64,14 @@ else
echo "Java SDK is not installed, so the Java binding will not be included"
fi
+## To find dynamic C run-time libraries when running GF below
+export DYLD_LIBRARY_PATH="$extralib" LD_LIBRARY_PATH="$extralib"
+
+
## Build GF, with C run-time support enabled
cabal install -w "$ghc" --only-dependencies -fserver -fc-runtime $extra
cabal configure -w "$ghc" --prefix="$prefix" -fserver -fc-runtime $extra
-DYLD_LIBRARY_PATH="$extralib" LD_LIBRARY_PATH="$extralib" cabal build
+cabal build
# Building the example grammars will fail, because the RGL is missing
cabal copy --destdir="$destdir" # create www directory
@@ -81,7 +85,7 @@ make copy
popd
# Build GF again, including example grammars that need the RGL
-DYLD_LIBRARY_PATH="$extralib" LD_LIBRARY_PATH="$extralib" cabal build
+cabal build
## Copy GF to $destdir
cabal copy --destdir="$destdir"