diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-11 16:15:50 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-11 16:15:50 +0000 |
commit | fae83f89232e703475de7a0f45933acdaf862094 (patch) | |
tree | 873c84ac068bb716509540eac65cfcd7f0be9b68 /lang/perl58 | |
parent | d55e241ca76c012baf94f94288fe496e3a685fc5 (diff) | |
download | pkgsrc-fae83f89232e703475de7a0f45933acdaf862094.tar.gz |
Move the arm-specific hack into the hacks.mk file, and properly document
what is happening.
Diffstat (limited to 'lang/perl58')
-rw-r--r-- | lang/perl58/Makefile | 8 | ||||
-rw-r--r-- | lang/perl58/hacks.mk | 11 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile index 48b2129143f..11b559b5a8a 100644 --- a/lang/perl58/Makefile +++ b/lang/perl58/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.80 2005/05/09 15:41:52 xtraeme Exp $ +# $NetBSD: Makefile,v 1.81 2005/05/11 16:15:50 jlam Exp $ # The following two variables should have empty values unless we're # building a perl snapshot or release candidate. @@ -52,13 +52,7 @@ CONFIGURE_ARGS+= -Dprefix="${PREFIX}" CONFIGURE_ARGS+= -Dscriptdir="${PREFIX}/bin" CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}" CONFIGURE_ARGS+= -Dcc="${CC}" -.if !empty(MACHINE_ARCH:Marm) -. if !empty(CC_VERSION:Mgcc-3*) -CONFIGURE_ARGS+= -Doptimize="${CFLAGS} -fno-cse-skip-blocks" -. endif -.else CONFIGURE_ARGS+= -Doptimize="${CFLAGS}" -.endif CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5" CONFIGURE_ARGS+= -Duseshrplib CONFIGURE_ARGS+= -Ui_malloc diff --git a/lang/perl58/hacks.mk b/lang/perl58/hacks.mk index 4f8c5750443..7130e3111f8 100644 --- a/lang/perl58/hacks.mk +++ b/lang/perl58/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.5 2004/12/10 23:48:50 jlam Exp $ +# $NetBSD: hacks.mk,v 1.6 2005/05/11 16:15:50 jlam Exp $ .include "../../mk/compiler.mk" @@ -61,3 +61,12 @@ NaN-vax-exception: PKG_HACKS+= alpha-mieee BUILDLINK_TRANSFORM+= rm:-mieee .endif + +### [Mon May 9 15:35:44 UTC 2005 : jlam] +### On NetBSD/arm, skipping one part of the optimization pass empirically +### "fixes" the build of perl using gcc-3.x. +### +.if !empty(CC_VERSION:Mgcc-3.*) && !empty(MACHINE_ARCH:Marm*) +PKG_HACKS+= arm-codegen +CFLAGS+= -fno-cse-skip-blocks +.endif |