diff --git a/jffi-1.2.7/jni/GNUmakefile b/jffi-1.2.7/jni/GNUmakefile index 27737be..98f147e 100755 --- a/jffi-1.2.7/jni/GNUmakefile +++ b/jffi-1.2.7/jni/GNUmakefile @@ -64,7 +64,7 @@ JFLAGS = -fno-omit-frame-pointer -fno-strict-aliasing -DNDEBUG OFLAGS = -O2 $(JFLAGS) # MacOS headers aren't completely warning free, so turn them off -WERROR = -Werror +WERROR = ifneq ($(OS),darwin) WFLAGS += -Wundef $(WERROR) endif diff --git a/jffi-1.2.7/libtest/GNUmakefile b/jffi-1.2.7/libtest/GNUmakefile index 9e70664..72e4cc9 100644 --- a/jffi-1.2.7/libtest/GNUmakefile +++ b/jffi-1.2.7/libtest/GNUmakefile @@ -44,10 +44,10 @@ TEST_OBJS := $(patsubst $(SRC_DIR)/%.c, $(TEST_BUILD_DIR)/%.o, $(TEST_SRCS)) # Compiler/linker flags from: # http://weblogs.java.net/blog/kellyohair/archive/2006/01/compilation_of_1.html JFLAGS = -fno-omit-frame-pointer -fno-strict-aliasing -OFLAGS = -O2 $(JFLAGS) -WFLAGS = -W -Werror -Wall -Wno-unused -Wno-parentheses +OFLAGS = $(JFLAGS) +WFLAGS = -W -Wall -Wno-unused -Wno-parentheses PICFLAGS = -fPIC -SOFLAGS = -shared -Wl,-O1 +SOFLAGS = -shared LDFLAGS += $(SOFLAGS) IFLAGS = -I"$(BUILD_DIR)"