diff options
author | xtraeme <xtraeme> | 2005-02-20 17:14:40 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2005-02-20 17:14:40 +0000 |
commit | 7d835c85074570ea6edddb1338ce83a77e8cc763 (patch) | |
tree | 0d3826773da189d38e1f7b2b56f0c40121d79b82 /emulators | |
parent | 149b329268507c5b2efe15e743dbfff422798956 (diff) | |
download | pkgsrc-7d835c85074570ea6edddb1338ce83a77e8cc763.tar.gz |
Only transform -maling-* if !empty(CC_VERSION:Mgcc-3*).
Diffstat (limited to 'emulators')
-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" |