diff options
author | joerg <joerg> | 2007-08-01 16:20:42 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-08-01 16:20:42 +0000 |
commit | 8a85fb6f2528a8595e7884eb14d27d04c56c1b89 (patch) | |
tree | 81288ffe476d28a4a82e812c175f5beac1b718e4 /graphics/freetype2 | |
parent | 358cae60def47715360906f8143cef84a9dc8f41 (diff) | |
download | pkgsrc-8a85fb6f2528a8595e7884eb14d27d04c56c1b89.tar.gz |
Pass down native compiler using CC_BUILD when cross-compiling.
Diffstat (limited to 'graphics/freetype2')
-rw-r--r-- | graphics/freetype2/Makefile | 6 |
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" |