@linuxmaniac here's the makefile
`include ../../Makefile.defs
auto_gen=
NAME=app_java.so
USE_GCJ ?= no
#DEFS += -DEXTRA_DEBUG
DIST = $(shell if [ -f "/etc/redhat-release" ]; then cat /etc/redhat-release | sed "s/.([0-9]).[0-9]./\1/g"; fi)
ifeq ($(DIST),6)
JVM_PATH = $(shell dirname find /usr/lib/jvm/java/ -name "libjvm.so"
)
DEFS += $(shell pkg-config libgcj-4.4 --cflags)
LIBS += $(shell pkg-config libgcj-4.4 --cflags) -L$(JVM_PATH) -ljvm
else
ifeq ($(USE_GCJ),yes)
JAVA_HOME ?= $(shell readlink -f /usr/bin/javac | sed "s:bin/javac::")
DEFS += $(shell pkg-config libgcj --cflags) -I$(JAVA_HOME)/include
LIBS += $(shell pkg-config libgcj --libs) -L$(JAVA_HOME)/lib -ljvm
else
ifeq ($(ARCH),i386)
ATYPE=i386
else ifeq ($(ARCH),x86_64)
ATYPE=amd64
endif
JAVA_HOME = /usr/lib/jvm/java
DEFS += -I/usr/lib/jvm/java-11-openjdk-amd64/include
LIBS += -L/usr/lib/jvm/java-11-openjdk-amd64/server -ljvm
endif
ifeq ($(USE_GCJ),yes)
ifeq ($(shell [ -d "${JAVA_HOME}" -a -f "$(JAVA_HOME)/include/jni.h" -a -f "$(JAVA_HOME)/lib/libjvm.so" ] && echo 1 || echo 0),0)
ifneq ($(DOCBUILD),yes)
JAVA_HOME = /usr/lib/jvm/java
DEFS += -I/usr/lib/jvm/java-11-openjdk-amd64/include -I/usr/lib/jvm/java-11-openjdk-amd64/include -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux
LIBS += -L/usr/lib/jvm/java-11-openjdk-amd64/server -ljvm
endif
endif
else
ifeq ($(shell [ -d "${JAVA_HOME}" -a -f "$(JAVA_HOME)/include/jni.h" -a -f "$(JAVA_HOME)/jre/lib/$(ATYPE)/server/libjvm.so" ] && echo 1 || echo 0),0)
ifneq ($(DOCBUILD),yes)
JAVA_HOME = /usr/lib/jvm/java
DEFS += -I/usr/lib/jvm/java-11-openjdk-amd64/include -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux
LIBS += -L/usr/lib/jvm/java-11-openjdk-amd64/server -ljvm
endif
endif
endif
ifeq ($(OS), freebsd)
LIBS+=-pthread
endif
ifeq ($(OS), linux)
DEFS += -I/usr/lib/jvm/java-11-openjdk-amd64/include -I /usr/lib/jvm/java-11-openjdk-amd64/include/linux
endif
endif
ifeq ($(USE_GCJ),yes)
INCLUDE += -O0 -g
INCLUDES += -O0 -g
endif
include ../../Makefile.modules
`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.