Separate out hacks from package Makefile into hacks.mk.
This commit is contained in:
parent
412b59de79
commit
2ab1ac2122
2 changed files with 27 additions and 24 deletions
|
@ -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}
|
||||
|
|
26
lang/perl58/hacks.mk
Normal file
26
lang/perl58/hacks.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue