summaryrefslogtreecommitdiff
path: root/devel/cpuflags
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2003-07-08 16:52:40 +0000
committerabs <abs@pkgsrc.org>2003-07-08 16:52:40 +0000
commit606f83a9b4a4242d8ecca34a68c0ceabdf489a8e (patch)
tree1512c4d2e83dc445dcebe6ecda5dec22d1227a27 /devel/cpuflags
parenta27e925c089f5ecc719d53b8ea26d1c359cad507 (diff)
downloadpkgsrc-606f83a9b4a4242d8ecca34a68c0ceabdf489a8e.tar.gz
Update cpuflags to 0.52:
On i386 try to S/-fomit-frame-pointer/-momit-leaf-frame-pointer/ for package with problems with -fomit-frame-pointer
Diffstat (limited to 'devel/cpuflags')
-rw-r--r--devel/cpuflags/Makefile4
-rw-r--r--devel/cpuflags/files/optimize_gcc.mk14
2 files changed, 13 insertions, 5 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile
index c3358b8efc7..ade3426e853 100644
--- a/devel/cpuflags/Makefile
+++ b/devel/cpuflags/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.53 2003/06/17 15:04:49 abs Exp $
+# $NetBSD: Makefile,v 1.54 2003/07/08 16:52:40 abs Exp $
#
-DISTNAME= cpuflags-0.51
+DISTNAME= cpuflags-0.52
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/devel/cpuflags/files/optimize_gcc.mk b/devel/cpuflags/files/optimize_gcc.mk
index 58418de7565..b4247416b42 100644
--- a/devel/cpuflags/files/optimize_gcc.mk
+++ b/devel/cpuflags/files/optimize_gcc.mk
@@ -1,4 +1,4 @@
-# $Id: optimize_gcc.mk,v 1.8 2003/06/17 15:04:49 abs Exp $
+# $Id: optimize_gcc.mk,v 1.9 2003/07/08 16:52:41 abs Exp $
# This file is 'experimental' - which is doublespeak for unspeakably
# ugly, and probably quite broken by design.
@@ -28,13 +28,21 @@ PKGBASE=${.CURDIR:C:.*/::}
COPT_FLAGS+=-ffast-math -fomit-frame-pointer
PKG_EXCLUDE_RENAME_REGISTERS+=
-PKG_EXCLUDE_OMIT_FRAME_POINTER+=galeon lua4 mozilla phoenix
-.if !defined(USE_GCC3)
+PKG_EXCLUDE_OMIT_FRAME_POINTER+=lua4
+
+.if defined(MACHINE_ARCH) && ${MACHINE_ARCH} == "i386"
+PKG_EXCLUDE_OMIT_FRAME_POINTER+=galeon mozilla phoenix
+. if !defined(USE_GCC3)
PKG_EXCLUDE_OMIT_FRAME_POINTER+=qt3-libs kdeedu3
+. endif
.endif
.if !empty(PKG_EXCLUDE_OMIT_FRAME_POINTER:M${PKGBASE})
+. if defined(MACHINE_ARCH) && ${MACHINE_ARCH} == "i386"
+COPT_FLAGS:= ${COPT_FLAGS:S/-fomit-frame-pointer/-momit-leaf-frame-pointer/}
+. else
COPT_FLAGS:= ${COPT_FLAGS:S/-fomit-frame-pointer//}
+. endif
.endif
# -O3 implies -finline-functions and -frename-registers