From 12e55c93c06263f7f042bc5d8a2c80d6e90b15fa Mon Sep 17 00:00:00 2001 From: Thomas Hallgren Date: Wed, 27 Nov 2019 14:31:45 +0100 Subject: [PATCH] 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 --- bin/build-binary-dist.sh | 8 ++++++-- 1 file 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"