summaryrefslogtreecommitdiff
path: root/graphics/freetype2
diff options
context:
space:
mode:
authorjoerg <joerg>2007-08-01 16:20:42 +0000
committerjoerg <joerg>2007-08-01 16:20:42 +0000
commit8a85fb6f2528a8595e7884eb14d27d04c56c1b89 (patch)
tree81288ffe476d28a4a82e812c175f5beac1b718e4 /graphics/freetype2
parent358cae60def47715360906f8143cef84a9dc8f41 (diff)
downloadpkgsrc-8a85fb6f2528a8595e7884eb14d27d04c56c1b89.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"