diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2005-02-20 17:14:40 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2005-02-20 17:14:40 +0000 |
commit | 99693c414b9bd73867283ca93c7a85333b851f57 (patch) | |
tree | 0d3826773da189d38e1f7b2b56f0c40121d79b82 /emulators/dgen | |
parent | 67efb008fd5afb1197cd3361213dcbd1d6f3a936 (diff) | |
download | pkgsrc-99693c414b9bd73867283ca93c7a85333b851f57.tar.gz |
Only transform -maling-* if !empty(CC_VERSION:Mgcc-3*).
Diffstat (limited to 'emulators/dgen')
-rw-r--r-- | emulators/dgen/Makefile | 16 |
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" |