Use %set_build_flags

This commit is contained in:
Petr Lautrbach 2019-08-13 21:14:00 +02:00
parent 04b65113f0
commit 261ead2b51
1 changed files with 4 additions and 4 deletions

View File

@ -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}