[Java] Use environmental variable JAVA_HOME in Makefile for RocksJava.

This commit is contained in:
Yueh-Hsuan Chiang 2014-05-04 13:15:33 -07:00
parent db1854d78c
commit d56959a5fc

View File

@ -430,7 +430,7 @@ ldb: tools/ldb.o $(LIBOBJECTS)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
JNI_NATIVE_SOURCES = ./java/rocksjni/*.cc JNI_NATIVE_SOURCES = ./java/rocksjni/*.cc
JAVA_INCLUDE = -I/usr/lib/jvm/java-openjdk/include/ -I/usr/lib/jvm/java-openjdk/include/linux JAVA_INCLUDE = -I$(JAVA_HOME)/include/ -I$(JAVA_HOME)/include/linux
ROCKSDBJNILIB = ./java/librocksdbjni.so ROCKSDBJNILIB = ./java/librocksdbjni.so
ifeq ($(PLATFORM), OS_MACOSX) ifeq ($(PLATFORM), OS_MACOSX)