ab6d516acb
firefox-2.0.0.3nb1 now, as discussed with gdt on tech-pkg.
23 lines
658 B
Makefile
23 lines
658 B
Makefile
# $NetBSD: hacks.mk,v 1.1.1.1 2007/05/12 13:56:10 ghen Exp $
|
|
|
|
# Firefox suffers from display glitches (e.g. text appearing at the wrong
|
|
# location) if it was compiled with optimization.
|
|
|
|
.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<4.0' ${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
|