summaryrefslogtreecommitdiff
path: root/security/nettle
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-11 16:55:54 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-11 16:55:54 +0000
commit124c91ad2142c94b4ad4b30efa4f5997f41394c1 (patch)
tree1e55cad5410d99e1c4e495dcf3e3e564cbf8400d /security/nettle
parentb0ab56d911dbea8875fbdf35c9470329fca4f507 (diff)
downloadpkgsrc-124c91ad2142c94b4ad4b30efa4f5997f41394c1.tar.gz
Fix cross-build of security/nettle by setting CC_FOR_BUILD.
Diffstat (limited to 'security/nettle')
-rw-r--r--security/nettle/Makefile8
1 files changed, 7 insertions, 1 deletions
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