diff options
author | riastradh <riastradh@pkgsrc.org> | 2013-05-10 20:18:39 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2013-05-10 20:18:39 +0000 |
commit | 32371be1c6c7a2954ad37c333927ade1cfcee8db (patch) | |
tree | 367486f102dd6b7e825499b008609e85f3ea3305 | |
parent | c0c3f0d1c7b5e3c8071cc895d4c38d1a040d328b (diff) | |
download | pkgsrc-32371be1c6c7a2954ad37c333927ade1cfcee8db.tar.gz |
Fix cross-build of gnupg with CC_FOR_BUILD=NATIVE_CC.
-rw-r--r-- | security/gnupg/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile index 0c2fc24524b..e244ed33136 100644 --- a/security/gnupg/Makefile +++ b/security/gnupg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.118 2013/02/06 23:23:36 jperkin Exp $ +# $NetBSD: Makefile,v 1.119 2013/05/10 20:18:39 riastradh Exp $ DISTNAME= gnupg-1.4.13 PKGREVISION= 2 @@ -38,6 +38,10 @@ CONFIGURE_ARGS+= --disable-gnupg-iconv CONFIGURE_ARGS+= --disable-asm .endif +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} +.endif + post-install: ${INSTALL_DATA} ${WRKSRC}/doc/DETAILS \ ${DESTDIR}${PREFIX}/share/gnupg |