From fecf00c7214c6f9f05f9277451d4b5f4bafaab0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 27 Mar 2022 20:45:42 +0200 Subject: [PATCH] - do not override our optimization flags --- kismet.spec | 2 ++ opt.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 opt.patch diff --git a/kismet.spec b/kismet.spec index e181718..70108db 100644 --- a/kismet.spec +++ b/kismet.spec @@ -8,6 +8,7 @@ License: GPL Group: Networking/Utilities Source0: http://www.kismetwireless.net/code/%{name}-%{tarver}.tar.xz # Source0-md5: df4cc90d5183b7fd45846a33bf598339 +Patch0: opt.patch URL: http://www.kismetwireless.net/ BuildRequires: autoconf BuildRequires: automake @@ -51,6 +52,7 @@ wsparcie dla kart bez obsługi Monitora RF. %prep %setup -q -n %{name}-%{tarver} +%patch0 -p1 # make lib64 aware, include exec bits on install %{__sed} -i -e 's!\$(prefix)/lib/!%_libdir/!g' plugin-*/Makefile diff --git a/opt.patch b/opt.patch new file mode 100644 index 0000000..2d9d9ac --- /dev/null +++ b/opt.patch @@ -0,0 +1,12 @@ +--- kismet-2021-05-R1/configure.ac~ 2021-05-20 00:58:52.000000000 +0200 ++++ kismet-2021-05-R1/configure.ac 2022-03-27 20:38:53.095863552 +0200 +@@ -209,9 +209,6 @@ + + AC_SUBST(PLUGINLDFLAGS) + +-CXXFLAGS="$CXXFLAGS -O3" +-CFLAGS="$CFLAGS -O3" +- + if test "$cygwin" = "yes"; then + AC_MSG_CHECKING(cygwin compile flags) + AC_MSG_RESULT(__MINGW32__) -- 2.44.0