1
0
forked from GitHub/gf-core

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.
This commit is contained in:
hallgren
2016-04-25 14:21:04 +00:00
parent 983da7adfc
commit 41171be5a6
3 changed files with 6 additions and 6 deletions

View File

@@ -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"