don't error our on harmless gcc3 warning; don't override CFLAGS
This commit is contained in:
parent
974247e480
commit
d234fdd40e
17
www/netsurf/libcss/patches/patch-Makefile
Normal file
17
www/netsurf/libcss/patches/patch-Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1 2011/09/16 13:35:49 naddy Exp $
|
||||
|
||||
gcc3 throws a spurious warning that a variable might be used uninitialized.
|
||||
|
||||
--- Makefile.orig Fri Sep 16 15:08:28 2011
|
||||
+++ Makefile Fri Sep 16 15:12:11 2011
|
||||
@@ -16,7 +16,9 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-a
|
||||
# BeOS/Haiku/AmigaOS4 standard library headers create warnings
|
||||
ifneq ($(TARGET),beos)
|
||||
ifneq ($(TARGET),amiga)
|
||||
- WARNFLAGS := $(WARNFLAGS) -Werror
|
||||
+ ifneq ($(TARGET),OpenBSD)
|
||||
+ WARNFLAGS := $(WARNFLAGS) -Werror
|
||||
+ endif
|
||||
endif
|
||||
endif
|
||||
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
|
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-build_makefiles_Makefile_tools,v 1.1 2011/09/16 13:35:49 naddy Exp $
|
||||
|
||||
Don't override CFLAGS.
|
||||
|
||||
--- build/makefiles/Makefile.tools.orig Fri Sep 16 15:12:43 2011
|
||||
+++ build/makefiles/Makefile.tools Fri Sep 16 15:13:42 2011
|
||||
@@ -420,8 +420,8 @@ include build/makefiles/Makefile.$(toolchain)
|
||||
###############################################################################
|
||||
|
||||
ifeq ($(BUILD),release)
|
||||
- OPTCFLAGS ?= $(CCDEF)NDEBUG $(CCOPT)
|
||||
- OPTCXXFLAGS ?= $(CXXDEF)NDEBUG $(CXXOPT)
|
||||
+ OPTCFLAGS ?= $(CCDEF)NDEBUG # $(CCOPT)
|
||||
+ OPTCXXFLAGS ?= $(CXXDEF)NDEBUG # $(CXXOPT)
|
||||
else
|
||||
OPTCFLAGS ?= $(CCDBG) $(CCNOOPT) $(CCDEF)DEBUG
|
||||
OPTCXXFLAGS ?= $(CXXDBG) $(CXXNOOPT) $(CXXDEF)DEBUG
|
Loading…
x
Reference in New Issue
Block a user