Use %set_build_flags
This commit is contained in:
parent
04b65113f0
commit
261ead2b51
@ -89,7 +89,7 @@ SELinux management applications.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LDFLAGS="%{?__global_ldflags}"
|
%set_build_flags
|
||||||
|
|
||||||
# To support building the Python wrapper against multiple Python runtimes
|
# To support building the Python wrapper against multiple Python runtimes
|
||||||
# Define a function, for how to perform a "build" of the python wrapper against
|
# 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:
|
# Perform the build from the upstream Makefile:
|
||||||
make \
|
make \
|
||||||
PYTHON=$BinaryName \
|
PYTHON=$BinaryName \
|
||||||
CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" \
|
LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" \
|
||||||
pywrap
|
pywrap
|
||||||
}
|
}
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
make CFLAGS="%{optflags}" swigify
|
make swigify
|
||||||
make CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all
|
make LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all
|
||||||
|
|
||||||
BuildPythonWrapper \
|
BuildPythonWrapper \
|
||||||
%{__python2}
|
%{__python2}
|
||||||
|
Loading…
Reference in New Issue
Block a user