summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-02-20 17:14:40 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-02-20 17:14:40 +0000
commit0f854d754944d99f610a6b07297136e3c1d0a684 (patch)
tree0d3826773da189d38e1f7b2b56f0c40121d79b82 /emulators
parent406727a768ada293b5efa83345e6b67fb1f4b1dd (diff)
downloadpkgsrc-0f854d754944d99f610a6b07297136e3c1d0a684.tar.gz
Only transform -maling-* if !empty(CC_VERSION:Mgcc-3*).
Diffstat (limited to 'emulators')
-rw-r--r--emulators/dgen/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/emulators/dgen/Makefile b/emulators/dgen/Makefile
index 1c8cd59408e..f9647586a08 100644
--- a/emulators/dgen/Makefile
+++ b/emulators/dgen/Makefile
@@ -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 @@ CONFIGURE_ARGS+= --with-extra-opt
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"