pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl58 Move the arm-specific hack into the hacks....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a42dbf2a7ceb
branches:  trunk
changeset: 493666:a42dbf2a7ceb
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed May 11 16:15:50 2005 +0000

description:
Move the arm-specific hack into the hacks.mk file, and properly document
what is happening.

diffstat:

 lang/perl58/Makefile |   8 +-------
 lang/perl58/hacks.mk |  11 ++++++++++-
 2 files changed, 11 insertions(+), 8 deletions(-)

diffs (45 lines):

diff -r 51c3a20bd9f1 -r a42dbf2a7ceb lang/perl58/Makefile
--- a/lang/perl58/Makefile      Wed May 11 16:13:54 2005 +0000
+++ b/lang/perl58/Makefile      Wed May 11 16:15:50 2005 +0000
@@ -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+=       -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 -r 51c3a20bd9f1 -r a42dbf2a7ceb lang/perl58/hacks.mk
--- a/lang/perl58/hacks.mk      Wed May 11 16:13:54 2005 +0000
+++ b/lang/perl58/hacks.mk      Wed May 11 16:15:50 2005 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index