aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/macros.in b/macros.in
index 35168fa..1020af0 100644
--- a/macros.in
+++ b/macros.in
@@ -293,6 +293,16 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} -
%{warn:%%setup_compile_flags is deprecated, use %%set_build_flags instead} \
%set_build_flags
+# Automatically use set_build_flags macro for build, check, and
+# install phases.
+# Use "%undefine _auto_set_build_flags" to disable"
+%_auto_set_build_flags 1
+%__spec_build_pre %{___build_pre} \
+ %{?_auto_set_build_flags:%{set_build_flags}}
+
+%__spec_check_pre %{___build_pre} \
+ %{?_auto_set_build_flags:%{set_build_flags}}
+
%debugcflags %{?_enable_debug_packages:-g}
%_fortify_level 3
@@ -518,6 +528,7 @@ if [ %{_with install} -eq 1 ]; then\
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
mkdir -p `dirname "$RPM_BUILD_ROOT"`\
mkdir "$RPM_BUILD_ROOT"\
+ %{?_auto_set_build_flags:%{set_build_flags}}\
fi
#---------------------------------------------------------------------