Description: Set LD_LIBRARY_PATH to Java binary path before running test-java.sh
Author: Sébastien Villemot <sebastien@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852892
Last-Update: 2017-02-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/packages/jpl/Makefile.in
+++ b/packages/jpl/Makefile.in
@@ -63,7 +63,7 @@ check_pl:	jpltest.jar
 		  echo "No jpltest.jar; maybe junit is not installed?" ; \
 		fi
 check_java:	jpltest.jar
-		JUNIT=$(JUNIT) JAVA=$(JAVA) JAVA_PRELOAD=$(JAVA_PRELOAD) ./test-java.sh
+		$(SO_PATH)="$(JAVA_LIBRARY_PATH)" JUNIT=$(JUNIT) JAVA=$(JAVA) JAVA_PRELOAD=$(JAVA_PRELOAD) ./test-java.sh
 
 jpltest.jar:
 		(cd src/java && $(MAKE) test_jar)
