aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2019-12-28 21:49:01 +0200
committerJani Välimaa <wally@mageia.org>2019-12-28 21:49:01 +0200
commit4ac236a0a415165a327bc15d606da875d6f58d5b (patch)
tree8408bc32576326b2d9f791dc689dc7ce12bd87ea
parent166f1a6306b06f991f9386e99b4862acdce145f0 (diff)
downloadrpm-setup-4ac236a0a415165a327bc15d606da875d6f58d5b.tar
rpm-setup-4ac236a0a415165a327bc15d606da875d6f58d5b.tar.gz
rpm-setup-4ac236a0a415165a327bc15d606da875d6f58d5b.tar.bz2
rpm-setup-4ac236a0a415165a327bc15d606da875d6f58d5b.tar.xz
rpm-setup-4ac236a0a415165a327bc15d606da875d6f58d5b.zip
build.macros: add __global_* flags for compatibility with Fedora
%__global_cflags %{build_cflags} %__global_cxxflags %{build_cxxflags} %__global_fflags %{build_fflags} %__global_fcflags %{build_fflags} %__global_ldflags %{build_ldflags}
-rw-r--r--NEWS1
-rw-r--r--build.macros.in8
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 16dac7b..ee5f275 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- build.macros: add __global_* macros for compatibility with Fedora
- build.macros: drop deprecated and unused macros
- __chkconfig
- __service
diff --git a/build.macros.in b/build.macros.in
index 61c7259..9c93cc5 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -234,10 +234,16 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o
%configure2_5x \
%main_configure
-
# Maximum number of CPU's to use when building, 0 for unlimited.
%_smp_ncpus_max 0
+# Deprecated names. For backwards compatibility only.
+%__global_cflags %{build_cflags}
+%__global_cxxflags %{build_cxxflags}
+%__global_fflags %{build_fflags}
+%__global_fcflags %{build_fflags}
+%__global_ldflags %{build_ldflags}
+
#==============================================================================
# ---- Build policy macros.
#