Fix cross-build of security/libgpg-error. Index: security/libgpg-error/Makefile =================================================================== RCS file: /cvsroot/pkgsrc/security/libgpg-error/Makefile,v retrieving revision 1.36 diff -p -u -r1.36 Makefile --- security/libgpg-error/Makefile 15 Mar 2013 22:06:01 -0000 1.36 +++ security/libgpg-error/Makefile 23 Apr 2013 13:29:21 -0000 @@ -19,12 +19,17 @@ PKG_INSTALLATION_TYPES= overwrite pkgvie 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