iputils/iputils-20020927-rh.patch

31 lines
1.0 KiB
Diff
Raw Normal View History

2012-11-27 07:38:28 +00:00
Fedora-specific makefile patch.
2012-12-06 08:25:21 +00:00
--- iputils-s20121125/Makefile.orig 2012-12-05 15:30:04.000000000 +0100
+++ iputils-s20121125/Makefile 2012-12-05 15:31:50.349577490 +0100
@@ -32,7 +32,7 @@
# -------------------------------------
# What a pity, all new gccs are buggy and -Werror does not work. Sigh.
# CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g
-CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g
+CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g -Werror
CCOPTOPT=-O3
GLIBCFIX=-D_GNU_SOURCE
DEFINES=
2012-12-06 08:25:21 +00:00
@@ -77,7 +77,7 @@
IPV6_TARGETS=tracepath6 traceroute6 ping6
TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS)
-CFLAGS=$(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
+CFLAGS+=$(RPM_OPT_FLAGS) $(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
LDLIBS=$(LDLIB) $(ADDLIB)
LASTTAG:=`git describe HEAD | sed -e 's/-.*//'`
2012-12-06 08:25:21 +00:00
@@ -146,6 +146,7 @@
# -------------------------------------
# ninfod
+ninfod: CFLAGS:=$(filter-out -Werror,$(CFLAGS))
ninfod:
@set -e; \
if [ ! -f ninfod/Makefile ]; then \