diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-14 07:48:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-14 07:48:30 +0000 |
commit | 467d6be4b9349ae1e128dad9e974fad46eda27f9 (patch) | |
tree | a49cdcab62aa536af3f6b1fca4f96e0115a05ea5 /lang | |
parent | fcd9dec9347cc21da12f6c2a667bcd0218c438d6 (diff) | |
download | pkgsrc-467d6be4b9349ae1e128dad9e974fad46eda27f9.tar.gz |
Separate out hacks from package Makefile into hacks.mk.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl58/Makefile | 25 | ||||
-rw-r--r-- | lang/perl58/hacks.mk | 26 |
2 files changed, 27 insertions, 24 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile index f8601f83707..678fc7e4248 100644 --- a/lang/perl58/Makefile +++ b/lang/perl58/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.58 2004/11/12 23:30:07 jlam Exp $ +# $NetBSD: Makefile,v 1.59 2004/11/14 07:48:30 jlam Exp $ # The following two variables should have empty values unless we're # building a perl snapshot or release candidate. @@ -188,29 +188,6 @@ CONFIGURE_ARGS+= -Dlibswanted="${LIBSWANTED}" CONFIGURE_ARGS+= -Duse64bitint .endif -.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} -. endif -. if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS]) -# -# Fix brokenness when using an older toolchain (gcc<3.3) on sparc64. -# Passing -g to the configure process triggers -DDEBUGGING, which plays -# the real trick and circumvents some code-generation bugs, so we add -# -g to CFLAGS to at least have a really debuggable build. -# -CFLAGS+= -g -msoft-quad-float -O2 -. endif -. endif -.endif - PERL5= ${PREFIX}/bin/perl${PERL5_VERS} PERL5_PRIVLIB?= ${PREFIX}/lib/perl5/${PERL5_VERS} PERL5_ARCHLIB?= ${PREFIX}/lib/perl5/${PERL5_VERS}/${MACHINE_ARCH}-${LOWER_OPSYS} diff --git a/lang/perl58/hacks.mk b/lang/perl58/hacks.mk new file mode 100644 index 00000000000..d75823ffc81 --- /dev/null +++ b/lang/perl58/hacks.mk @@ -0,0 +1,26 @@ +# $NetBSD: hacks.mk,v 1.1 2004/11/14 07:48:30 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} +. 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 |