27 lines
764 B
Makefile
27 lines
764 B
Makefile
|
# $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
|