diff options
author | riastradh <riastradh@pkgsrc.org> | 2013-05-10 00:37:48 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2013-05-10 00:37:48 +0000 |
commit | 4644d7d5163d9707812c0221071d457b9fb9da30 (patch) | |
tree | ba64002ad0e5334ac172c428033dadeae53fc2c6 /security/libgpg-error | |
parent | d0353d9c0058dce054c7cae3498f82f0613a19b3 (diff) | |
download | pkgsrc-4644d7d5163d9707812c0221071d457b9fb9da30.tar.gz |
Fix cross-build of security/libgpg-error with CC_FOR_BUILD=NATIVE_CC.
ok agc
Diffstat (limited to 'security/libgpg-error')
-rw-r--r-- | security/libgpg-error/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/security/libgpg-error/Makefile b/security/libgpg-error/Makefile index 87164e2bbe1..e375a7c1214 100644 --- a/security/libgpg-error/Makefile +++ b/security/libgpg-error/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2013/03/15 22:06:01 wiz Exp $ +# $NetBSD: Makefile,v 1.37 2013/05/10 00:37:48 riastradh Exp $ DISTNAME= libgpg-error-1.11 CATEGORIES= security @@ -19,12 +19,17 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews USE_LIBTOOL= yes USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes -CONFIGURE_ENV+= CC_FOR_BUILD=${CC:Q}\ ${CFLAGS:M*:Q} MAKE_ENV+= LC_ALL="C" MAKE_JOBS_SAFE= no .include "../../mk/bsd.prefs.mk" +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} +.else +CONFIGURE_ENV+= CC_FOR_BUILD=${CC:Q}\ ${CFLAGS:M*:Q} +.endif + # XXX See HACKS .if ${OPSYS} == "IRIX" || !empty(MACHINE_PLATFORM:MNetBSD-[3-9]*) USE_TOOLS+= nawk |