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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user