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 | 04da625465012733fe3d0ed8f8f7f5069875a840 (patch) | |
tree | ba64002ad0e5334ac172c428033dadeae53fc2c6 /security | |
parent | c452a99646d0e60443fb0f86852a47b95b537658 (diff) | |
download | pkgsrc-04da625465012733fe3d0ed8f8f7f5069875a840.tar.gz |
Fix cross-build of security/libgpg-error with CC_FOR_BUILD=NATIVE_CC.
ok agc
Diffstat (limited to 'security')
-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 |