diff options
Diffstat (limited to 'dev-java/jffi/files/jffi-1.2.7_no-werror.patch')
-rw-r--r-- | dev-java/jffi/files/jffi-1.2.7_no-werror.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-java/jffi/files/jffi-1.2.7_no-werror.patch b/dev-java/jffi/files/jffi-1.2.7_no-werror.patch new file mode 100644 index 00000000000..517a1e546d8 --- /dev/null +++ b/dev-java/jffi/files/jffi-1.2.7_no-werror.patch @@ -0,0 +1,31 @@ +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)" |