From f3632ee82dc00fe51ea4e04bb79325c67bcdca39 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 10 Aug 2013 04:40:25 +0200 Subject: fix java-c-jni sigsegv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5df771b..d205115 100644 --- a/Makefile +++ b/Makefile @@ -7,15 +7,18 @@ # # [GNU All Permissive License] +C_OPTIMISE=-O6 +JAVA_OPTIMISE=-O + LIB_EXT=so JAVAC=javac JAVADIRS=-s "java" -d "bin/java" -cp "java" -JAVAFLAGS=-Xlint -O +JAVAFLAGS=-Xlint $(JAVA_OPTIMISE) JAVA_FLAGS=$(JAVADIRS) $(JAVAFLAGS) # NB! Do not forget to test against -O0, -O4 to -O6 is not safe -CFLAGS=-W{all,extra} -pedantic -O6 +CFLAGS=-W{all,extra} -pedantic $(C_OPTIMISE) CPPFLAGS= LDFLAGS= C_FLAGS=$(CFLAGS) $(CPPFLAGS) $(LDFLAGS) @@ -23,15 +26,16 @@ C_FLAGS=$(CFLAGS) $(CPPFLAGS) $(LDFLAGS) JNI_C_INCLUDE=-I$${JAVA_HOME}/include JNI_C_FLAGS=$(JNI_INCLUDE) -fPIC -shared JNI_JAVADIRS=-s "java-c-jni" -d "bin/java-c-jni" -cp "java-c-jni" -JNI_JAVAFLAGS=-Xlint -O +JNI_JAVAFLAGS=-Xlint $(JAVA_OPTIMISE) JNI_JAVA_FLAGS=$(JNI_JAVADIRS) $(JNI_JAVAFLAGS) - JAVA_CLASSES = $(shell find "java" | grep '\.java$$' | sed -e 's_^_bin/_g' -e 's_java$$_class_g') C_OBJS = $(shell find "c" | grep '\.h$$' | sed -e 's_^_bin/_g' -e 's_h$$_o_g') C_BINS = bin/c/sha3sum JNI_CLASSES = $(shell find "java-c-jni" | grep '\.java$$' | sed -e 's_^_bin/_g' -e 's_java$$_class_g') + + all: java c java-c-jni -- cgit v1.2.3-70-g09d2