aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-08-25 22:51:48 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-08-25 22:51:48 +0000
commitf377f6c0bcb081bd3ddea7a850aa9169493ebce8 (patch)
treea812c57f34d22382b6693873949ee663340e6e57 /macros.in
parentb6eebf5e82672cfee7548a1eb71e295dc928b05d (diff)
downloadrpm-setup-f377f6c0bcb081bd3ddea7a850aa9169493ebce8.tar
rpm-setup-f377f6c0bcb081bd3ddea7a850aa9169493ebce8.tar.gz
rpm-setup-f377f6c0bcb081bd3ddea7a850aa9169493ebce8.tar.bz2
rpm-setup-f377f6c0bcb081bd3ddea7a850aa9169493ebce8.tar.xz
rpm-setup-f377f6c0bcb081bd3ddea7a850aa9169493ebce8.zip
factor out common compile flags and build with -D_FORTIFY_SOURCE=2
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros.in b/macros.in
index 06a52b6..7294a4c 100644
--- a/macros.in
+++ b/macros.in
@@ -65,6 +65,9 @@
%ix86 i386 i486 i586 i686 pentium3 pentium4 athlon k6
+# common compilation flags
+%__common_cflags -O2 %{debugcflags} -pipe -Wp,-D_FORTIFY_SOURCE=2
+
#==============================================================================
# ---- Optional rpmrc macros.
# Macros that are initialized as a side effect of rpmrc and/or spec