macros: Directly use %set_build_flags, as it is supported since EPEL 7
This commit is contained in:
parent
e8ab29358a
commit
2a93bfd1de
@ -538,6 +538,7 @@ popd
|
|||||||
* Sat May 27 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.4-3
|
* Sat May 27 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.4-3
|
||||||
- Rename macros.cmake -> macros.cmake.in
|
- Rename macros.cmake -> macros.cmake.in
|
||||||
- macros: Fix formatting and indentation
|
- macros: Fix formatting and indentation
|
||||||
|
- macros: Directly use %%set_build_flags, as it is supported since EPEL 7
|
||||||
|
|
||||||
* Fri May 19 2023 Neal Gompa <ngompa@fedoraproject.org> - 3.26.4-2
|
* Fri May 19 2023 Neal Gompa <ngompa@fedoraproject.org> - 3.26.4-2
|
||||||
- macros: use the language build flag macros for compiler flags
|
- macros: use the language build flag macros for compiler flags
|
||||||
|
@ -18,15 +18,7 @@
|
|||||||
# - Set default install prefixes and library install directories
|
# - Set default install prefixes and library install directories
|
||||||
# - Turn on shared libraries by default
|
# - Turn on shared libraries by default
|
||||||
%cmake \
|
%cmake \
|
||||||
%if 0%{?set_build_flags:1} \
|
%{set_build_flags} \
|
||||||
%set_build_flags \
|
|
||||||
%else \
|
|
||||||
CFLAGS="${CFLAGS:-%build_cflags}" ; export CFLAGS ; \
|
|
||||||
CXXFLAGS="${CXXFLAGS:-%build_cxxflags}" ; export CXXFLAGS ; \
|
|
||||||
FFLAGS="${FFLAGS:-%build_fflags}" ; export FFLAGS ; \
|
|
||||||
FCFLAGS="${FCFLAGS:-%build_fflags}" ; export FCFLAGS ; \
|
|
||||||
%{?build_ldflags:LDFLAGS="${LDFLAGS:-%build_ldflags}" ; export LDFLAGS ;} \
|
|
||||||
%endif \
|
|
||||||
%__cmake \\\
|
%__cmake \\\
|
||||||
%{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\
|
%{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\
|
||||||
%{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\
|
%{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\
|
||||||
|
Loading…
Reference in New Issue
Block a user