From 41171be5a6473eeb5de42e3f2c0e20c854d1481a Mon Sep 17 00:00:00 2001 From: hallgren Date: Mon, 25 Apr 2016 14:21:04 +0000 Subject: 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. --- bin/build-binary-dist.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') 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" -- cgit v1.2.3