ercpe       14/11/12 05:22:48

  Added:                jffi-1.2.7_no-werror.patch
  Log:
  Dropped -Werror and optimization flags from test build flags (bug #528778)
  
  (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 
77C501ED)

Revision  Changes    Path
1.1                  dev-java/jffi/files/jffi-1.2.7_no-werror.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/files/jffi-1.2.7_no-werror.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/files/jffi-1.2.7_no-werror.patch?rev=1.1&content-type=text/plain

Index: jffi-1.2.7_no-werror.patch
===================================================================
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)"




Reply via email to