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>
This commit is contained in:
parent
9652674abf
commit
fece3c7612
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ This package adds SELinux enforcement to passt(1) and pasta(1).
|
||||||
%setup -q -n passt-{{{ git_head }}}
|
%setup -q -n passt-{{{ git_head }}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
%set_build_flags
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
Loading…
Reference in a new issue