From 261ead2b51a7ea7f97c5e4ba80d1d1a58959839e Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 13 Aug 2019 21:14:00 +0200 Subject: [PATCH] Use %set_build_flags --- libsemanage.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsemanage.spec b/libsemanage.spec index 777f49e..8d26eb4 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -89,7 +89,7 @@ SELinux management applications. %build -export LDFLAGS="%{?__global_ldflags}" +%set_build_flags # To support building the Python wrapper against multiple Python runtimes # Define a function, for how to perform a "build" of the python wrapper against @@ -100,13 +100,13 @@ BuildPythonWrapper() { # Perform the build from the upstream Makefile: make \ PYTHON=$BinaryName \ - CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" \ + LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" \ pywrap } make clean -make CFLAGS="%{optflags}" swigify -make CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all +make swigify +make LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all BuildPythonWrapper \ %{__python2}