forked from GitHub/gf-core
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
This commit is contained in:
@@ -64,10 +64,14 @@ else
|
|||||||
echo "Java SDK is not installed, so the Java binding will not be included"
|
echo "Java SDK is not installed, so the Java binding will not be included"
|
||||||
fi
|
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
|
## Build GF, with C run-time support enabled
|
||||||
cabal install -w "$ghc" --only-dependencies -fserver -fc-runtime $extra
|
cabal install -w "$ghc" --only-dependencies -fserver -fc-runtime $extra
|
||||||
cabal configure -w "$ghc" --prefix="$prefix" -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
|
# Building the example grammars will fail, because the RGL is missing
|
||||||
cabal copy --destdir="$destdir" # create www directory
|
cabal copy --destdir="$destdir" # create www directory
|
||||||
|
|
||||||
@@ -81,7 +85,7 @@ make copy
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
# Build GF again, including example grammars that need the RGL
|
# 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
|
## Copy GF to $destdir
|
||||||
cabal copy --destdir="$destdir"
|
cabal copy --destdir="$destdir"
|
||||||
|
|||||||
Reference in New Issue
Block a user