aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-10-06 16:13:31 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-10-06 16:13:31 +0000
commitc65b36f06837e4e8f7f0960ac4308f75f63d0ef6 (patch)
tree0c25ba824cf9826264e979e316810d39d33609cb
parentbcd69dfe486ba8c07ae4c1468ca7003568df226b (diff)
downloadrpm-setup-c65b36f06837e4e8f7f0960ac4308f75f63d0ef6.tar
rpm-setup-c65b36f06837e4e8f7f0960ac4308f75f63d0ef6.tar.gz
rpm-setup-c65b36f06837e4e8f7f0960ac4308f75f63d0ef6.tar.bz2
rpm-setup-c65b36f06837e4e8f7f0960ac4308f75f63d0ef6.tar.xz
rpm-setup-c65b36f06837e4e8f7f0960ac4308f75f63d0ef6.zip
enable -debug packages for 2007, build with -fasynchronous-unwind-tables
on x86 and -fexceptions everywhere (including for C code)
-rw-r--r--macros.in4
-rw-r--r--rpmrc.in12
2 files changed, 8 insertions, 8 deletions
diff --git a/macros.in b/macros.in
index 8dd3403..23dba75 100644
--- a/macros.in
+++ b/macros.in
@@ -55,7 +55,7 @@
# (e.g. per-platform, per-system, per-packager, per-package) macros.
#
-# %_enable_debug_packages
+%_enable_debug_packages 1
%debugcflags %{?_enable_debug_packages:-g}
@@ -66,7 +66,7 @@
%ix86 i386 i486 i586 i686 pentium3 pentium4 athlon k6
# common compilation flags
-%__common_cflags -O2 %{debugcflags} -pipe -Wp,-D_FORTIFY_SOURCE=2
+%__common_cflags -O2 %{debugcflags} -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
#==============================================================================
# ---- Optional rpmrc macros.
diff --git a/rpmrc.in b/rpmrc.in
index 15f976b..7e0cd75 100644
--- a/rpmrc.in
+++ b/rpmrc.in
@@ -5,12 +5,12 @@
#############################################################
# Values for RPM_OPT_FLAGS for various platforms
-optflags: i386 %{__common_cflags} -fomit-frame-pointer -march=i386
-optflags: i486 %{__common_cflags} -fomit-frame-pointer -march=i486
-optflags: k6 %{__common_cflags} -fomit-frame-pointer -march=k6
-optflags: i586 %{__common_cflags} -fomit-frame-pointer -march=i586 -mtune=pentiumpro
-optflags: i686 %{__common_cflags} -fomit-frame-pointer -march=i686
-optflags: athlon %{__common_cflags} -fomit-frame-pointer -march=athlon
+optflags: i386 %{__common_cflags} -fomit-frame-pointer -march=i386 -fasynchronous-unwind-tables
+optflags: i486 %{__common_cflags} -fomit-frame-pointer -march=i486 -fasynchronous-unwind-tables
+optflags: k6 %{__common_cflags} -fomit-frame-pointer -march=k6 -fasynchronous-unwind-tables
+optflags: i586 %{__common_cflags} -fomit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables
+optflags: i686 %{__common_cflags} -fomit-frame-pointer -march=i686 -fasynchronous-unwind-tables
+optflags: athlon %{__common_cflags} -fomit-frame-pointer -march=athlon -fasynchronous-unwind-tables
optflags: ia64 %{__common_cflags}
optflags: x86_64 %{__common_cflags}
optflags: amd64 %{__common_cflags}