diff --git a/macros b/macros index 18fb73bfb5a3f2e069e4ee24676470755c683264..65ebb742a26a7528a63184f4596c161248a0bc64 100644 --- a/macros +++ b/macros @@ -69,6 +69,7 @@ %build_cflags %{optflags} %build_cxxflags %{optflags} -fexceptions %build_fflags %{optflags} -fexceptions -I%{_fmoddir} +%build_valaflags -g # When clang is used as a linker driver, it does not auto-detect the LTO # bytecode and neither does bfd, so we need to explicitly pass the -flto @@ -88,6 +89,8 @@ CXXFLAGS="${CXXFLAGS:-%{build_cxxflags}}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%{build_fflags}}" ; export FFLAGS ; \ FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \ + VALAFLAGS="${VALAFLAGS:-%{build_valaflags}}" ; export VALAFLAGS ; %{?build_rustflags: + RUSTFLAGS="${RUSTFLAGS:-%{build_rustflags}}" ; export RUSTFLAGS ;} \ LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS # Automatically use set_build_flags macro for build, check, and diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index e7cfe70f51152cdf152bfd4831498bef303771d3..ad836fbd2d806c6aedc399f9021b23749438b527 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 31 -Release: 31 +Release: 32 License: GPL+ AND MIT Summary: specific rpm configuration files URL: https://gitee.com/src-openeuler/openEuler-rpm-config @@ -211,6 +211,10 @@ sed -i "s|@OSCPE@|$(cat /etc/system-release-cpe)|" %{buildroot}%{rpmvdir}/%{vend %{rpmvdir}/find-requires.ksyms %changelog +* Tue Aug 05 2025 Funda Wang - 31-32 +- export RUSTFLAGS if it is defined +- define valaflags also + * Sat Aug 02 2025 Funda Wang - 31-31 - let __python points to __python3, as we only provide one flavour of python now - completely remove python2 only macros