%set_build_flags: unconditionally set RUSTFLAGS
This commit is contained in:
parent
4d945d4291
commit
16122a6127
6
macros
6
macros
@ -86,15 +86,13 @@
|
|||||||
# have not been set already. RPM_OPT_FLAGS and RPM_LD_FLAGS have already
|
# have not been set already. RPM_OPT_FLAGS and RPM_LD_FLAGS have already
|
||||||
# been set implicitly at the start of the %%build section.
|
# been set implicitly at the start of the %%build section.
|
||||||
# LT_SYS_LIBRARY_PATH is used by libtool script.
|
# LT_SYS_LIBRARY_PATH is used by libtool script.
|
||||||
# RUSTFLAGS is only set when rust-packaging which defines %%{build_rustflags} is
|
|
||||||
# available.
|
|
||||||
%set_build_flags \
|
%set_build_flags \
|
||||||
CFLAGS="${CFLAGS:-%{build_cflags}}" ; export CFLAGS ; \
|
CFLAGS="${CFLAGS:-%{build_cflags}}" ; export CFLAGS ; \
|
||||||
CXXFLAGS="${CXXFLAGS:-%{build_cxxflags}}" ; export CXXFLAGS ; \
|
CXXFLAGS="${CXXFLAGS:-%{build_cxxflags}}" ; export CXXFLAGS ; \
|
||||||
FFLAGS="${FFLAGS:-%{build_fflags}}" ; export FFLAGS ; \
|
FFLAGS="${FFLAGS:-%{build_fflags}}" ; export FFLAGS ; \
|
||||||
FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \
|
FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \
|
||||||
VALAFLAGS="${VALAFLAGS:-%{build_valaflags}}" ; export VALAFLAGS ;%{?build_rustflags:
|
VALAFLAGS="${VALAFLAGS:-%{build_valaflags}}" ; export VALAFLAGS ; \
|
||||||
RUSTFLAGS="${RUSTFLAGS:-%{build_rustflags}}" ; export RUSTFLAGS ;} \
|
RUSTFLAGS="${RUSTFLAGS:-%{build_rustflags}}" ; export RUSTFLAGS ; \
|
||||||
LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS ; \
|
LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS ; \
|
||||||
LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-%_libdir:}" ; export LT_SYS_LIBRARY_PATH ; \
|
LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-%_libdir:}" ; export LT_SYS_LIBRARY_PATH ; \
|
||||||
CC="${CC:-%{__cc}}" ; export CC ; \
|
CC="${CC:-%{__cc}}" ; export CC ; \
|
||||||
|
@ -103,7 +103,8 @@ Requires: perl-srpm-macros
|
|||||||
# ↓ Has Python BRPs originaly present in redhat-rpm-config
|
# ↓ Has Python BRPs originaly present in redhat-rpm-config
|
||||||
Requires: python-srpm-macros >= 3.11-7
|
Requires: python-srpm-macros >= 3.11-7
|
||||||
Requires: qt5-srpm-macros
|
Requires: qt5-srpm-macros
|
||||||
Requires: rust-srpm-macros
|
# rust-srpm-macros v24 contains %%build_rustflags defintion
|
||||||
|
Requires: rust-srpm-macros >= 24
|
||||||
Requires: rpmautospec-rpm-macros
|
Requires: rpmautospec-rpm-macros
|
||||||
Requires: package-notes-srpm-macros
|
Requires: package-notes-srpm-macros
|
||||||
Requires: pyproject-srpm-macros
|
Requires: pyproject-srpm-macros
|
||||||
|
Loading…
Reference in New Issue
Block a user