summaryrefslogtreecommitdiff
path: root/graphics/freetype2
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
commit1fc722f5fe92c9c427f29945af389b7793ffa447 (patch)
tree81288ffe476d28a4a82e812c175f5beac1b718e4 /graphics/freetype2
parentf55f5fb96d667054037d41c799116c5de698118d (diff)
downloadpkgsrc-1fc722f5fe92c9c427f29945af389b7793ffa447.tar.gz
Pass down native compiler using CC_BUILD when cross-compiling.
Diffstat (limited to 'graphics/freetype2')
-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"