pkgsrc/www/firefox/hacks.mk
tron 7ef4fc52cb Compile without optimization if GCC <4.0 (4.0 not tested) is used on
a powerpc architecture (e.g. NetBSD-mapcppc). This cures display glitches
(e.g. text appearing at the wrong location). Bump package revision
because of this change.
2005-08-03 16:55:19 +00:00

23 lines
652 B
Makefile

# $NetBSD: hacks.mk,v 1.1 2005/08/03 16:55:19 tron 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}
. endif
. if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS])
PKG_HACKS+= powerpc-codegen
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
. endif
. endif
.endif