From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 11/12] fedora: Don't hardcode CFLAGS setting, use %set_build_flags macro instead Date: Thu, 18 Aug 2022 22:22:34 +0200 Message-ID: <20220818202235.1591828-12-sbrivio@redhat.com> In-Reply-To: <20220818202235.1591828-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2249047607097064394==" --===============2249047607097064394== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This will also set any distribution-specific LDFLAGS. It's not needed anymore starting from Fedora 36, but the package might be built on other versions and distributions too (including e.g. CentOS Stream 8). Reported-by: Artur Frenszek-Iwicki Signed-off-by: Stefano Brivio --- contrib/fedora/passt.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec index d4f83cb..0c3dec7 100644 --- a/contrib/fedora/passt.spec +++ b/contrib/fedora/passt.spec @@ -47,7 +47,7 @@ This package adds SELinux enforcement to passt(1) and pasta= (1). %setup -q -n passt-{{{ git_head }}} =20 %build -export CFLAGS=3D"%{optflags}" +%set_build_flags %make_build =20 %install --=20 2.35.1 --===============2249047607097064394==--