aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-07 17:34:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-07 17:34:01 +0000
commit4e85fa5fcca3b13ad0103faaffd50213203779d8 (patch)
treea4a75f3e8d6d14b91c34c1d2e354918d6fb3512c
parentaf8b21008aaf5e9b9b38eb98c6cc5c5c3f7a0dc4 (diff)
downloadrpm-setup-4e85fa5fcca3b13ad0103faaffd50213203779d8.tar
rpm-setup-4e85fa5fcca3b13ad0103faaffd50213203779d8.tar.gz
rpm-setup-4e85fa5fcca3b13ad0103faaffd50213203779d8.tar.bz2
rpm-setup-4e85fa5fcca3b13ad0103faaffd50213203779d8.tar.xz
rpm-setup-4e85fa5fcca3b13ad0103faaffd50213203779d8.zip
1.68: do not use ssp_flags on archs which do not handle it (thanks to rtp)1.68
-rw-r--r--configure.ac2
-rw-r--r--macros.in3
-rw-r--r--rpmrc.in38
3 files changed, 23 insertions, 20 deletions
diff --git a/configure.ac b/configure.ac
index 1bacd27..6452bb5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
# $Id$
AC_PREREQ(2.59)
-AC_INIT(rpm-mandriva-setup, 1.67, nanardon@mandriva.org)
+AC_INIT(rpm-mandriva-setup, 1.68, nanardon@mandriva.org)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(1.9)
AC_CONFIG_SRCDIR
diff --git a/macros.in b/macros.in
index b537db5..a8d91d3 100644
--- a/macros.in
+++ b/macros.in
@@ -86,7 +86,8 @@ Group: %{group}\
%_fortify_cflags -Wp,-D_FORTIFY_SOURCE=2
%_serverbuild_flags %nil
%_ssp_cflags -fstack-protector --param=ssp-buffer-size=4 %{?_serverbuild_flags}
-%__common_cflags -O2 %{debugcflags} -pipe %{?_fortify_cflags} %{?_ssp_cflags} -fexceptions
+%__common_cflags -O2 %{debugcflags} -pipe %{?_fortify_cflags} -fexceptions
+%__common_cflags_with_ssp %{__common_cflags} %{?_ssp_cflags}
#==============================================================================
# ---- Optional rpmrc macros.
diff --git a/rpmrc.in b/rpmrc.in
index 68e793d..a86a1b7 100644
--- a/rpmrc.in
+++ b/rpmrc.in
@@ -5,18 +5,20 @@
#############################################################
# Values for RPM_OPT_FLAGS for various platforms
-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=generic -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: pentium3 %{__common_cflags} -fomit-frame-pointer -march=pentium3 -fasynchronous-unwind-tables
-optflags: pentium4 %{__common_cflags} -fomit-frame-pointer -march=pentium4 -fasynchronous-unwind-tables
+optflags: i386 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i386 -fasynchronous-unwind-tables
+optflags: i486 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i486 -fasynchronous-unwind-tables
+optflags: k6 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=k6 -fasynchronous-unwind-tables
+optflags: i586 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables
+optflags: i686 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i686 -fasynchronous-unwind-tables
+optflags: athlon %{__common_cflags_with_ssp} -fomit-frame-pointer -march=athlon -fasynchronous-unwind-tables
+optflags: pentium3 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=pentium3 -fasynchronous-unwind-tables
+optflags: pentium4 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=pentium4 -fasynchronous-unwind-tables
+
+optflags: x86_64 %{__common_cflags_with_ssp}
+optflags: amd64 %{__common_cflags_with_ssp}
+optflags: ia32e %{__common_cflags_with_ssp}
+
optflags: ia64 %{__common_cflags}
-optflags: x86_64 %{__common_cflags}
-optflags: amd64 %{__common_cflags}
-optflags: ia32e %{__common_cflags}
# XXX Please note that -mieee has been added in rpm-3.0.5.
optflags: alpha %{__common_cflags} -mieee -mcpu=ev5
@@ -32,11 +34,11 @@ optflags: sparc64 %{__common_cflags} -m64 -mcpu=ultrasparc
optflags: m68k %{__common_cflags} -fomit-frame-pointer
-optflags: ppc %{__common_cflags} -fsigned-char -mcpu=750 -mtune=7450
-optflags: ppciseries %{__common_cflags} -fsigned-char
-optflags: ppcpseries %{__common_cflags} -fsigned-char
-optflags: ppc32 %{__common_cflags} -m32 -fsigned-char -mcpu=power4 -mtune=cell
-optflags: ppc64 %{__common_cflags} -m64 -fsigned-char -mcpu=power4 -mtune=cell
+optflags: ppc %{__common_cflags_with_ssp} -fsigned-char -mcpu=750 -mtune=7450
+optflags: ppciseries %{__common_cflags_with_ssp} -fsigned-char
+optflags: ppcpseries %{__common_cflags_with_ssp} -fsigned-char
+optflags: ppc32 %{__common_cflags_with_ssp} -m32 -fsigned-char -mcpu=power4 -mtune=cell
+optflags: ppc64 %{__common_cflags_with_ssp} -m64 -fsigned-char -mcpu=power4 -mtune=cell
optflags: parisc %{__common_cflags} -mpa-risc-1-0
optflags: hppa1.0 %{__common_cflags} -mpa-risc-1-0
@@ -59,8 +61,8 @@ optflags: atariclone %{__common_cflags} -fomit-frame-pointer
optflags: milan %{__common_cflags} -fomit-frame-pointer
optflags: hades %{__common_cflags} -fomit-frame-pointer
-optflags: s390 %{__common_cflags}
-optflags: s390x %{__common_cflags}
+optflags: s390 %{__common_cflags_with_ssp}
+optflags: s390x %{__common_cflags_with_ssp}
#############################################################
# Canonical arch names and numbers