Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Pass MAKE and CONFIG_SHELL in the environment to configure scripts that are run as part of the gcc3 and gcc4 build.
This commit is contained in:
parent
0de1d80a7e
commit
9130d905da
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.20 2006/06/02 20:00:38 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.21 2006/09/29 20:14:10 apb Exp $
|
||||
|
||||
MKPRIVATELIB= yes
|
||||
|
||||
@ -145,7 +145,10 @@ auto-build.h: Makefile
|
||||
rm -rf .ab && \
|
||||
mkdir .ab && \
|
||||
(cd .ab && \
|
||||
CC=${HOST_CC} ${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
|
||||
CC=${HOST_CC:Q} \
|
||||
MAKE=${MAKE:Q} \
|
||||
CONFIG_SHELL=${HOST_SH:Q} \
|
||||
${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
|
||||
--build=`${HOST_SH} ${.CURDIR}/../../../dist/gcc/config.guess` \
|
||||
--host=`${HOST_SH} ${.CURDIR}/../../../dist/gcc/config.guess` \
|
||||
--target=${MACHINE_GNU_PLATFORM} && \
|
||||
|
@ -1,8 +1,13 @@
|
||||
# $NetBSD: Makefile,v 1.6 2004/06/21 18:20:08 jmc Exp $
|
||||
# $NetBSD: Makefile,v 1.7 2006/09/29 20:14:10 apb Exp $
|
||||
|
||||
libiberty/libiberty.a:
|
||||
[ ! -d libiberty ] && mkdir libiberty || exit 0
|
||||
(cd libiberty; env CC=${HOST_CC:Q} ${HOST_SH} ${DIST}/libiberty/configure && env CC=${HOST_CC:Q} ${MAKE})
|
||||
(cd libiberty; \
|
||||
CC=${HOST_CC:Q} \
|
||||
MAKE=${MAKE:Q} \
|
||||
CONFIG_SHELL=${HOST_SH:Q} \
|
||||
${HOST_SH} ${DIST}/libiberty/configure \
|
||||
&& CC=${HOST_CC:Q} ${MAKE})
|
||||
|
||||
cleandir:
|
||||
-rm -rf libiberty
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.5 2006/06/25 03:08:54 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.6 2006/09/29 20:14:10 apb Exp $
|
||||
|
||||
MKPRIVATELIB= yes
|
||||
|
||||
@ -182,7 +182,10 @@ auto-build.h: Makefile
|
||||
rm -rf .ab && \
|
||||
mkdir .ab && \
|
||||
(cd .ab && \
|
||||
CC=${HOST_CC} ${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
|
||||
CC=${HOST_CC:Q} \
|
||||
MAKE=${MAKE:Q} \
|
||||
CONFIG_SHELL=${HOST_SH:Q} \
|
||||
${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
|
||||
--build=`${HOST_SH} ${.CURDIR}/../../../dist/gcc/config.guess` \
|
||||
--host=`${HOST_SH} ${.CURDIR}/../../../dist/gcc/config.guess` \
|
||||
--target=${MACHINE_GNU_PLATFORM} && \
|
||||
|
@ -1,8 +1,13 @@
|
||||
# $NetBSD: Makefile,v 1.1 2006/05/10 22:48:14 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2006/09/29 20:14:10 apb Exp $
|
||||
|
||||
libiberty/libiberty.a:
|
||||
[ ! -d libiberty ] && mkdir libiberty || exit 0
|
||||
(cd libiberty; env CC=${HOST_CC:Q} ${HOST_SH} ${DIST}/libiberty/configure && env CC=${HOST_CC:Q} ${MAKE})
|
||||
(cd libiberty; \
|
||||
CC=${HOST_CC:Q} \
|
||||
MAKE=${MAKE:Q} \
|
||||
CONFIG_SHELL=${HOST_SH:Q} \
|
||||
${HOST_SH} ${DIST}/libiberty/configure \
|
||||
&& CC=${HOST_CC:Q} ${MAKE})
|
||||
|
||||
cleandir:
|
||||
-rm -rf libiberty
|
||||
|
Loading…
Reference in New Issue
Block a user