summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-01 16:20:42 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-01 16:20:42 +0000
commitede3ad6e6bc7a058a0e90840a3e0efc916a49c3d (patch)
tree81288ffe476d28a4a82e812c175f5beac1b718e4 /graphics
parent1545a749fc6cdf3b9fff3cc9417a9a595b477e97 (diff)
downloadpkgsrc-ede3ad6e6bc7a058a0e90840a3e0efc916a49c3d.tar.gz
Pass down native compiler using CC_BUILD when cross-compiling.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/freetype2/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/freetype2/Makefile b/graphics/freetype2/Makefile
index b15f8f21573..126765d8806 100644
--- a/graphics/freetype2/Makefile
+++ b/graphics/freetype2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2007/07/06 18:16:28 drochner Exp $
+# $NetBSD: Makefile,v 1.62 2007/08/01 16:20:42 joerg Exp $
DISTNAME= freetype-2.3.5
PKGNAME= ${DISTNAME:S/-/2-/}
@@ -66,6 +66,10 @@ CFLAGS+= -fno-strict-aliasing
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=no
.endif
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+CONFIGURE_ENV+= CC_BUILD=${NATIVE_CC:Q}
+.endif
+
post-configure:
cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
.if ${OPSYS} == "IRIX"