pkgsrc/databases/db4/hacks.mk
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

25 lines
774 B
Makefile

# $NetBSD: hacks.mk,v 1.4 2005/12/05 20:49:57 rillig Exp $
### [Sun Mar 14 19:32:40 UTC 2004 : jlam]
### GCC 3.3.x and older versions have an optimization bug on powerpc that's
### tickled by the db4 source code, so remove optimization flags in that
### case. This fixes PR pkg/30647 by Ian Spray.
###
.if ${MACHINE_ARCH} == "powerpc"
. include "../../mk/compiler.mk"
. if !empty(CC_VERSION:Mgcc*)
. if !defined(_GCC_IS_TOO_OLD)
_GCC_IS_TOO_OLD!= \
if ${PKG_ADMIN} pmatch 'gcc<3.4' ${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+= powerpc-codegen
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
. endif
. endif
.endif