pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/dgen Only transform -maling-* if !empty(CC_V...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/775722a9cb14
branches:  trunk
changeset: 489406:775722a9cb14
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sun Feb 20 17:14:40 2005 +0000

description:
Only transform -maling-* if !empty(CC_VERSION:Mgcc-3*).

diffstat:

 emulators/dgen/Makefile |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 362be84dfa47 -r 775722a9cb14 emulators/dgen/Makefile
--- a/emulators/dgen/Makefile   Sun Feb 20 16:57:13 2005 +0000
+++ b/emulators/dgen/Makefile   Sun Feb 20 17:14:40 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/02/20 16:34:39 xtraeme Exp $
+# $NetBSD: Makefile,v 1.6 2005/02/20 17:14:40 xtraeme Exp $
 #
 
 DISTNAME=      dgen-sdl-1.23
@@ -24,13 +24,17 @@
 SUBST_CLASSES+=                config
 SUBST_STAGE.config=    pre-configure
 SUBST_FILES.config=    configure
-SUBST_SED.config=      -e "s|\-malign-loops|\-falign-loops|g" \
-                       -e "s|\-malign-jumps|\-falign-jumps|g" \
-                       -e "s|\-malign-functions|\-falign-functions|g" \
-                       -e "s|\-mpentium||g" \
-                       -e "s|\-march=pentium||g" \
+SUBST_SED.config=      -e "s|\-mpentium||g"        \
+                       -e "s|\-march=pentium||g"   \
                        -e "s|\-fno-rtti||g"
 SUBST_MESSAGE.config=  "Removing outdated compilation flags."
 
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-3*)
+SUBST_SED.config+=     -e "s|\-malign-loops|\-falign-loops|g"
+SUBST_SED.config+=     -e "s|\-malign-jumps|\-falign-jumps|g"
+SUBST_SED.config+=     -e "s|\-malign-functions|\-falign-functions|g"
+.endif
+
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index