lib/jvm: inlude .h files in JAVA_HOME/inlude/linux if it exists
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 10 Nov 2014 19:00:08 +0000 (14:00 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 10 Nov 2014 19:01:53 +0000 (14:01 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/jvm.nit

index 4337d9e..56080a5 100644 (file)
@@ -19,8 +19,8 @@
 #
 # See: http://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html
 module jvm is
-       c_compiler_option("-I $(JAVA_HOME)/include/")
-       c_linker_option("-L $(JNI_LIB_PATH) -ljvm")
+       c_compiler_option "-I $(JAVA_HOME)/include/ -I $(JAVA_HOME)/include/linux/"
+       c_linker_option "-L $(JNI_LIB_PATH) -ljvm"
 end
 
 in "C Header" `{