From fece3c76124b0d3838d238d408f69edbfe69979d Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 18 Aug 2022 21:11:38 +0200 Subject: 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 Signed-off-by: Stefano Brivio --- contrib/fedora/passt.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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 -- cgit v1.2.3