* Updates of many standard Perl modules. * Performance enhancements for loadable modules and memory usage. * Fixed bug when running with "-w". Previously when running with warnings enabled globally via "-w", selective disabling of specific warning categories would actually turn off all warnings. This is now fixed; now "no warnings 'io';" will only turn off warnings in the "io" class. This bug fix may cause some programs to start correctly issuing warnings. * Perl 5.8.4 introduced a change so that assignments of "undef" to a scalar, or of an empty list to an array or a hash, were optimised away. As this could cause problems when "goto" jumps were involved, this change has been backed out. * Using the sprintf function with some formats could lead to a buffer overflow in some specific cases. This has been fixed, along with several other bugs, notably in bounds checking. * Fixed bug in pkgsrc-installed perl-5.8.7 and all subsequent PKGREVISIONs, where perl didn't look for site modules under /usr/pkg/lib/perl5/site_perl, but only under /usr/pkg/lib/perl5/site_perl/5.8.0, and similarly for the vendor modules. * Honor PKGMANDIR when installing man pages.
56 lines
1.8 KiB
Makefile
56 lines
1.8 KiB
Makefile
# $NetBSD: hacks.mk,v 1.3 2006/04/09 06:34:32 jlam Exp $
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
### [Thu Jun 7 04:25:34 UTC 2001 : jlam]
|
|
### Fix brokenness when using an older toolchain (gcc<3.3) on
|
|
### NetBSD/sparc64. Pass -g and -DDEBUGGING to the compiler to
|
|
### circumvent some code-generation bugs.
|
|
###
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
|
|
. if !empty(CC_VERSION:Mgcc*)
|
|
. if !defined(_GCC_IS_TOO_OLD)
|
|
_GCC_IS_TOO_OLD!= \
|
|
if ${PKG_ADMIN} pmatch 'gcc<3.3' ${CC_VERSION}; then \
|
|
${ECHO} "yes"; \
|
|
else \
|
|
${ECHO} "no"; \
|
|
fi
|
|
MAKEFLAGS+= _GCC_IS_TOO_OLD=${_GCC_IS_TOO_OLD:Q}
|
|
. endif
|
|
. if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS])
|
|
PKG_HACKS+= sparc64-codegen
|
|
CFLAGS+= -DDEBUGGING -g -msoft-quad-float -O2
|
|
. endif
|
|
. endif
|
|
.endif
|
|
|
|
### [Sun Nov 14 02:35:50 EST 2004 : jlam]
|
|
### On PowerPC, building with optimisation with GCC causes an "attempt
|
|
### to free unreference scalar". Remove optimisation flags as a
|
|
### workaround until GCC is fixed.
|
|
###
|
|
.if !empty(CC_VERSION:Mgcc*) && !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
|
|
PKG_HACKS+= powerpc-codegen
|
|
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
|
|
.endif
|
|
|
|
### [Fri Dec 10 18:46:19 EST 2004 : jlam]
|
|
### On NetBSD/alpha, building perl with -mieee causes perl to not pass
|
|
### the test for integer.pm (pkg/28498). Until this is fixed in either
|
|
### NetBSD, GCC or perl, strip out -mieee from the compiler command
|
|
### line.
|
|
###
|
|
.if !empty(CC_VERSION:Mgcc*) && !empty(MACHINE_PLATFORM:MNetBSD-*-alpha)
|
|
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
|