2012-11-27 07:38:28 +00:00
|
|
|
Fedora-specific makefile patch.
|
|
|
|
|
2013-01-07 12:52:02 +00:00
|
|
|
--- iputils-s20121221-dist/Makefile 2013-01-07 13:37:04.913224305 +0100
|
|
|
|
+++ iputils-s20121221-new/Makefile 2013-01-07 13:42:56.542052062 +0100
|
|
|
|
@@ -27,7 +27,7 @@
|
|
|
|
# sysfs support (with libsysfs - deprecated) [no|yes|static]
|
|
|
|
USE_SYSFS=no
|
|
|
|
# IDN support (experimental) [no|yes|static]
|
|
|
|
-USE_IDN=no
|
|
|
|
+USE_IDN=yes
|
|
|
|
|
|
|
|
# Do not use getifaddrs [no|yes|static]
|
|
|
|
WITHOUT_IFADDRS=no
|
|
|
|
@@ -35,7 +35,7 @@
|
|
|
|
ARPING_DEFAULT_DEVICE=
|
|
|
|
|
|
|
|
# GNU TLS library for ping6 [yes|no|static]
|
|
|
|
-USE_GNUTLS=yes
|
|
|
|
+USE_GNUTLS=no
|
|
|
|
# Crypto library for ping6 [shared|static]
|
|
|
|
USE_CRYPTO=shared
|
|
|
|
# Resolv library for ping6 [yes|static]
|
|
|
|
@@ -49,7 +49,7 @@
|
2012-11-06 13:24:54 +00:00
|
|
|
# -------------------------------------
|
2004-09-09 06:24:00 +00:00
|
|
|
# What a pity, all new gccs are buggy and -Werror does not work. Sigh.
|
2012-11-22 07:01:47 +00:00
|
|
|
# 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
|
2012-11-06 13:24:54 +00:00
|
|
|
GLIBCFIX=-D_GNU_SOURCE
|
|
|
|
DEFINES=
|
2013-01-07 12:52:02 +00:00
|
|
|
@@ -110,7 +110,7 @@
|
2004-09-09 06:24:00 +00:00
|
|
|
IPV6_TARGETS=tracepath6 traceroute6 ping6
|
2012-11-06 13:24:54 +00:00
|
|
|
TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS)
|
|
|
|
|
|
|
|
-CFLAGS=$(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
|
2012-11-22 07:01:47 +00:00
|
|
|
+CFLAGS+=$(RPM_OPT_FLAGS) $(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
|
2012-11-06 13:24:54 +00:00
|
|
|
LDLIBS=$(LDLIB) $(ADDLIB)
|
|
|
|
|
2012-12-06 10:44:28 +00:00
|
|
|
UNAME_N:=$(shell uname -n)
|
2013-01-07 12:52:02 +00:00
|
|
|
@@ -187,6 +187,7 @@
|
2012-12-06 08:25:21 +00:00
|
|
|
|
|
|
|
# -------------------------------------
|
|
|
|
# ninfod
|
|
|
|
+ninfod: CFLAGS:=$(filter-out -Werror,$(CFLAGS))
|
|
|
|
ninfod:
|
|
|
|
@set -e; \
|
|
|
|
if [ ! -f ninfod/Makefile ]; then \
|