aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-03-05 01:58:16 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-03-05 01:58:16 +0000
commit3fa068b2acd8650ab6ee8214602467f8421f7689 (patch)
tree606f5a176f39d008a33e4a6381dd95f3f54805d3 /macros.in
parent4e334f749a8ba5a9631c6f7fc0b1c42a5f9a764e (diff)
downloadrpm-setup-3fa068b2acd8650ab6ee8214602467f8421f7689.tar
rpm-setup-3fa068b2acd8650ab6ee8214602467f8421f7689.tar.gz
rpm-setup-3fa068b2acd8650ab6ee8214602467f8421f7689.tar.bz2
rpm-setup-3fa068b2acd8650ab6ee8214602467f8421f7689.tar.xz
rpm-setup-3fa068b2acd8650ab6ee8214602467f8421f7689.zip
- add a way to disable fortify from cflags as it cause some issue in some software
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/macros.in b/macros.in
index 4cc9305..9992840 100644
--- a/macros.in
+++ b/macros.in
@@ -68,7 +68,8 @@
%sunsparc sun4 sun4m sun4c sun4d sparc sparcv8 sparcv9 sparc64
# common compilation flags
-%__common_cflags -O2 %{debugcflags} -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
+%_fortify_cflags -Wp,-D_FORTIFY_SOURCE=2
+%__common_cflags -O2 %{debugcflags} -pipe %{?_fortify_cflags:%_fortify_cflags} -fexceptions
#==============================================================================
# ---- Optional rpmrc macros.