summaryrefslogtreecommitdiff
path: root/graphics/freetype2
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2004-06-15 07:29:00 +0000
committercube <cube@pkgsrc.org>2004-06-15 07:29:00 +0000
commite0f3a9c7972eccc36dceeca410425f026bbb25d0 (patch)
tree84fa265198644d1380d9347632ed1bde85890598 /graphics/freetype2
parent45ea6f71634e7095e26b2d86df6c745e70cce2ee (diff)
downloadpkgsrc-e0f3a9c7972eccc36dceeca410425f026bbb25d0.tar.gz
Apply patch from PR 25907 by Christopher Richards. This is probably the
best we can do until the code is actually fixed. Advised by mrg.
Diffstat (limited to 'graphics/freetype2')
-rw-r--r--graphics/freetype2/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/freetype2/Makefile b/graphics/freetype2/Makefile
index e772771e860..3afa588b2d8 100644
--- a/graphics/freetype2/Makefile
+++ b/graphics/freetype2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2004/05/29 23:36:10 recht Exp $
+# $NetBSD: Makefile,v 1.34 2004/06/15 07:29:00 cube Exp $
#
DISTNAME= freetype-2.1.8
@@ -28,6 +28,7 @@ CONFIGURE_ARGS+= --includedir=${PREFIX}/include
PKGCONFIG_OVERRIDE= builds/unix/freetype2.in
.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
.if defined(MKTTINTERP) && \
!empty(MKTTINTERP:M[yY][eE][sS])
@@ -45,6 +46,14 @@ CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
. endif
.endif
+# source code breaks strict aliasing in gcc >= 2.95
+.if !empty(CC_VERSION:Mgcc-*)
+. if empty(CC_VERSION:Mgcc-2.*) \
+ || !empty(CC_VERSION:Mgcc-2.95*)
+CFLAGS+= -fno-strict-aliasing
+. endif
+.endif
+
post-configure:
cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
.if ${OPSYS} == "IRIX"