--- /dev/null
+--- netsniff-ng-0.6.7/mausezahn/Makefile.orig 2020-05-04 15:15:32.000000000 +0200
++++ netsniff-ng-0.6.7/mausezahn/Makefile 2020-05-24 14:38:43.298126207 +0200
+@@ -71,7 +71,7 @@
+ staging/directmops.o \
+ staging/mausezahn.o
+
+-mausezahn-eflags = -O2 -I. -I.. \
++mausezahn-eflags = -I. -I.. \
+ -DVERSION_STRING=\"$(VERSION_STRING)\" \
+ -DVERSION_LONG=\"$(VERSION_LONG)\"
+
+--- netsniff-ng-0.6.7/Extra.orig 2020-05-04 15:15:32.000000000 +0200
++++ netsniff-ng-0.6.7/Extra 2020-05-24 14:39:00.224701174 +0200
+@@ -1,4 +1,4 @@
+ # Targets that need extra treatment for now
+
+ curvetun: LDFLAGS += -L ${CONFIG_NACL_LIB_DIR}
+-mausezahn: CFLAGS = $(mausezahn-eflags)
++mausezahn: CFLAGS += $(mausezahn-eflags)
Group: Networking/Utilities
Source0: http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz
# Source0-md5: 2aba9835923c30721fa891a9dc59507c
+Patch0: %{name}-opt.patch
URL: http://netsniff-ng.org/
BuildRequires: GeoIP-devel >= 1.4.8
BuildRequires: bison
%prep
%setup -q
+%patch0 -p1
%build
# not autoconf configure
./configure \
--sysconfdir="%{_sysconfdir}" \
--prefix="%{_prefix}"
+
+# as of 0.6.7 code relies on -fcommon behaviour, force it for gcc 10+
%{__make} \
CC="%{__cc}" \
CPPFLAGS="%{rpmcflags} %{rpmcppflags} -fcommon" \