pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/freetype2 Pass down native compiler using CC_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b95997c8279e
branches:  trunk
changeset: 531521:b95997c8279e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Aug 01 16:20:42 2007 +0000

description:
Pass down native compiler using CC_BUILD when cross-compiling.

diffstat:

 graphics/freetype2/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 5255df5bf8af -r b95997c8279e graphics/freetype2/Makefile
--- a/graphics/freetype2/Makefile       Wed Aug 01 16:16:11 2007 +0000
+++ b/graphics/freetype2/Makefile       Wed Aug 01 16:20:42 2007 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index