Fedora-specific makefile patch. --- 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= @@ -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/-.*//'` @@ -146,6 +146,7 @@ # ------------------------------------- # ninfod +ninfod: CFLAGS:=$(filter-out -Werror,$(CFLAGS)) ninfod: @set -e; \ if [ ! -f ninfod/Makefile ]; then \