diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-08-18 21:11:38 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-08-20 19:07:12 +0200 |
commit | fece3c76124b0d3838d238d408f69edbfe69979d (patch) | |
tree | 4df0a42bd50efa18ab49119db41d8fe6abece0ce | |
parent | 9652674abfd669e611044f1e32e493fb55b9ffc5 (diff) | |
download | passt-fece3c76124b0d3838d238d408f69edbfe69979d.tar passt-fece3c76124b0d3838d238d408f69edbfe69979d.tar.gz passt-fece3c76124b0d3838d238d408f69edbfe69979d.tar.bz2 passt-fece3c76124b0d3838d238d408f69edbfe69979d.tar.lz passt-fece3c76124b0d3838d238d408f69edbfe69979d.tar.xz passt-fece3c76124b0d3838d238d408f69edbfe69979d.tar.zst passt-fece3c76124b0d3838d238d408f69edbfe69979d.zip |
fedora: Don't hardcode CFLAGS setting, use %set_build_flags macro instead
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 <fedora@svgames.pl>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | contrib/fedora/passt.spec | 2 |
1 files changed, 1 insertions, 1 deletions
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 }}} %build -export CFLAGS="%{optflags}" +%set_build_flags %make_build %install |