Blame SOURCES/iputils-20020927-rh.patch

4b0239
Fedora-specific makefile patch.
4b0239
4b0239
--- iputils-s20121221-dist/Makefile	2013-01-07 13:37:04.913224305 +0100
4b0239
+++ iputils-s20121221-new/Makefile	2013-01-07 13:42:56.542052062 +0100
4b0239
@@ -27,7 +27,7 @@
4b0239
 # sysfs support (with libsysfs - deprecated) [no|yes|static]
4b0239
 USE_SYSFS=no
4b0239
 # IDN support (experimental) [no|yes|static]
4b0239
-USE_IDN=no
4b0239
+USE_IDN=yes
4b0239
 
4b0239
 # Do not use getifaddrs [no|yes|static]
4b0239
 WITHOUT_IFADDRS=no
4b0239
@@ -35,7 +35,7 @@
4b0239
 ARPING_DEFAULT_DEVICE=
4b0239
 
4b0239
 # GNU TLS library for ping6 [yes|no|static]
4b0239
-USE_GNUTLS=yes
4b0239
+USE_GNUTLS=no
4b0239
 # Crypto library for ping6 [shared|static]
4b0239
 USE_CRYPTO=shared
4b0239
 # Resolv library for ping6 [yes|static]
4b0239
@@ -49,7 +49,7 @@
4b0239
 # -------------------------------------
4b0239
 # What a pity, all new gccs are buggy and -Werror does not work. Sigh.
4b0239
 # CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g
4b0239
-CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g
4b0239
+CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g -Werror
4b0239
 CCOPTOPT=-O3
4b0239
 GLIBCFIX=-D_GNU_SOURCE
4b0239
 DEFINES=
4b0239
@@ -110,7 +110,7 @@
4b0239
 IPV6_TARGETS=tracepath6 traceroute6 ping6
4b0239
 TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS)
4b0239
 
4b0239
-CFLAGS=$(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
4b0239
+CFLAGS+=$(RPM_OPT_FLAGS) $(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
4b0239
 LDLIBS=$(LDLIB) $(ADDLIB)
4b0239
 
4b0239
 UNAME_N:=$(shell uname -n)
4b0239
@@ -187,6 +187,7 @@
4b0239
 
4b0239
 # -------------------------------------
4b0239
 # ninfod
4b0239
+ninfod: CFLAGS:=$(filter-out -Werror,$(CFLAGS))
4b0239
 ninfod:
4b0239
 	@set -e; \
4b0239
 		if [ ! -f ninfod/Makefile ]; then \