diff options
author | riastradh <riastradh@pkgsrc.org> | 2013-05-11 16:39:09 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2013-05-11 16:39:09 +0000 |
commit | c3eb33485fdc40569276123e74b384b6f34f5016 (patch) | |
tree | 6534a8088bb3c948176d0d85b1ef1ca71fe46043 | |
parent | f7f090199247aeb6cb738be269d3bc9350ba1fc3 (diff) | |
download | pkgsrc-c3eb33485fdc40569276123e74b384b6f34f5016.tar.gz |
Kludgily fix tcsh cross-build by passing NATIVE_CC.
Should patch the configure script to respect the environment setting
of CC_FOR_GETHOST (or CC_FOR_BUILD or something), but this is less
work and will do for now.
-rw-r--r-- | shells/tcsh/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile index ad9b95a0aab..6d01ab46198 100644 --- a/shells/tcsh/Makefile +++ b/shells/tcsh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.74 2012/10/10 19:26:16 dholland Exp $ +# $NetBSD: Makefile,v 1.75 2013/05/11 16:39:09 riastradh Exp $ DISTNAME= tcsh-6.18.01 PKGREVISION= 4 @@ -26,6 +26,12 @@ PLIST_SRC= ${WRKDIR}/PLIST-src LOWER_OPSYS_VERSUFFIX= ${OS_VERSION:S/5./2./} .endif +.if ${USE_CROSS_COMPILE} == "yes" +# XXX Should use CONFIGURE_ENV, but the configure script disregards +# $CC_FOR_GETHOST in the environment and sets it to cc. +MAKE_FLAGS+= CC_FOR_GETHOST=${NATIVE_CC:Q} +.endif + PKG_SHELL?= bin/tcsh INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 |