aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/libjunbound/make-linux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/libjunbound/make-linux.sh')
-rw-r--r--src/native/libjunbound/make-linux.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/native/libjunbound/make-linux.sh b/src/native/libjunbound/make-linux.sh
index 20bb0d8..6f8a36e 100644
--- a/src/native/libjunbound/make-linux.sh
+++ b/src/native/libjunbound/make-linux.sh
@@ -3,6 +3,7 @@ set -e
out=`pwd`/build/linux
prefix=$out/libs
+export JAVA_HOME=/usr/lib/jvm/default-java/
mkdir -p $out
mkdir -p $prefix
@@ -38,6 +39,6 @@ make
make install
cd $out
-gcc $out/../../src/net_java_sip_communicator_impl_dns_UnboundApi.cpp -fpic -shared -o libjunbound.so -I/usr/lib/jvm/java-6-openjdk/include -Wl,-Bstatic -L$prefix/lib -lunbound -lldns -I$prefix/include -Wl,-Bdynamic -lcrypto
+gcc $out/../../src/net_java_sip_communicator_impl_dns_UnboundApi.cpp -fpic -shared -o libjunbound.so -I$JAVA_HOME/include -Wl,-Bstatic -L$prefix/lib -lunbound -lldns -I$prefix/include -Wl,-Bdynamic -lcrypto
strip libjunbound.so