diff options
| author | hallgren <hallgren@chalmers.se> | 2016-04-25 14:21:04 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2016-04-25 14:21:04 +0000 |
| commit | 41171be5a6473eeb5de42e3f2c0e20c854d1481a (patch) | |
| tree | cff48433a0be9e9ca3c8ae3f070c2cba880d0424 /bin/build-binary-dist.sh | |
| parent | 983da7adfc714f7e15fc14aeeb103f273fe0b57e (diff) | |
Fix a problem building the Java binding when creating binary packages
Pass -I and -L flags to gcc so that the C run-time system can be found.
Also added a line in src/runtime/java/Makefile to install jpgf.jar.
Diffstat (limited to 'bin/build-binary-dist.sh')
| -rw-r--r-- | bin/build-binary-dist.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/build-binary-dist.sh b/bin/build-binary-dist.sh index 19c30b1ec..30acadffa 100644 --- a/bin/build-binary-dist.sh +++ b/bin/build-binary-dist.sh @@ -45,9 +45,8 @@ fi if which >/dev/null javac && which >/dev/null jar ; then pushd src/runtime/java rm -f libjpgf.la # In case it contains the wrong INSTALL_PATH - make INSTALL_PATH="$prefix/lib" + make CFLAGS="-I$extrainclude -L$extralib" INSTALL_PATH="$prefix/lib" make INSTALL_PATH="$destdir$prefix/lib" install - cp jpgf.jar "$destdir$prefix/lib" # missing from make install... popd else echo "Java SDK is not installed, so the Java binding will not be included" |
