From b922b5e6377b767cae8983678b88a42567098c57 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sat, 11 May 2013 16:55:54 +0000 Subject: Fix cross-build of security/nettle by setting CC_FOR_BUILD. --- security/nettle/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'security/nettle') diff --git a/security/nettle/Makefile b/security/nettle/Makefile index 59854258f50..c401a892269 100644 --- a/security/nettle/Makefile +++ b/security/nettle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2013/04/29 16:42:24 adam Exp $ +# $NetBSD: Makefile,v 1.11 2013/05/11 16:55:54 riastradh Exp $ DISTNAME= nettle-2.7 CATEGORIES= devel security @@ -17,6 +17,12 @@ GNU_CONFIGURE= yes SET_LIBDIR= yes CONFIGURE_ARGS+= --disable-openssl --disable-shared +.include "../../mk/bsd.prefs.mk" + +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} +.endif + INFO_FILES= yes TEST_TARGET= check PKGCONFIG_OVERRIDE= hogweed.pc.in -- cgit v1.2.3