aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2019-12-26 00:37:48 +0200
committerJani Välimaa <wally@mageia.org>2019-12-26 00:37:48 +0200
commit972c77cacf57e8e4132c9bdde4a18adf2fbea2ea (patch)
tree734dfd28776974edee18690f3f310c8987e9a349
parent1c374a73d1c693010d8912cdd5fada2687d0ee15 (diff)
downloadrpm-setup-972c77cacf57e8e4132c9bdde4a18adf2fbea2ea.tar
rpm-setup-972c77cacf57e8e4132c9bdde4a18adf2fbea2ea.tar.gz
rpm-setup-972c77cacf57e8e4132c9bdde4a18adf2fbea2ea.tar.bz2
rpm-setup-972c77cacf57e8e4132c9bdde4a18adf2fbea2ea.tar.xz
rpm-setup-972c77cacf57e8e4132c9bdde4a18adf2fbea2ea.zip
Replace setup_compile_flags rpm macro with upstream set_build_flags macro
Deprecation warning is output is %setup_compile_flags is used.
-rw-r--r--NEWS3
-rw-r--r--build.macros.in8
2 files changed, 6 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 795d6c7..75b4ce5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- replace %setup_compile_flags with upstream %set_build_flags and
+ output deprecation warning if %setup_compile_flags is used
+
Version 2.46 - 24 December 2019, by Jani Välimaa
- make brp-mangle-shebangs to not exit if 'read shebang_line < "$f"'
diff --git a/build.macros.in b/build.macros.in
index e9edd4a..7798ec5 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -224,13 +224,11 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o
%ldflags %{?!_disable_ld_as_needed: -Wl,--as-needed}%{?!_disable_ld_no_undefined: -Wl,--no-undefined}%{?!_disable_ld_relro: -Wl,-z,relro}%{?!_disable_ld_O1: -Wl,-O1}%{?!_disable_ld_build_id: -Wl,--build-id}%{?!_disable_ld_enable_new_dtags: -Wl,--enable-new-dtags}
%setup_compile_flags \
- CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
- CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
- FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
- LDFLAGS="${LDFLAGS:-%ldflags}" ; export LDFLAGS
+ echo "warning: %%setup_compile_flags is deprecated, try %%set_build_flags" 1>&2\
+ %set_build_flags
%before_configure \
- %setup_compile_flags \
+ %set_build_flags \
CONFIGURE_TOP="${CONFIGURE_TOP:-.}"; \
%{?!_disable_ld_as_needed:@RPMVENDORDIR@/force-as-needed-for-shared-lib-in-libtool ;} \
%{?!_disable_ld_no_undefined:@RPMVENDORDIR@/drop-ld-no-undefined-for-shared-lib-modules-in-libtool ;} \