diff options
author | riastradh <riastradh> | 2013-05-11 16:55:54 +0000 |
---|---|---|
committer | riastradh <riastradh> | 2013-05-11 16:55:54 +0000 |
commit | b922b5e6377b767cae8983678b88a42567098c57 (patch) | |
tree | 1e55cad5410d99e1c4e495dcf3e3e564cbf8400d /security/nettle | |
parent | aadb632ce55bee1320be2f9b7c56565a5ac52df5 (diff) | |
download | pkgsrc-b922b5e6377b767cae8983678b88a42567098c57.tar.gz |
Fix cross-build of security/nettle by setting CC_FOR_BUILD.
Diffstat (limited to 'security/nettle')
-rw-r--r-- | security/nettle/Makefile | 8 |
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 |