mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
* configure.in: Strip --host and --target options from
CONFIG_ARGUMENTS, and always configure for --host only. Add --with-cross-host option when building with a cross-compiler. * configure: Canonicalize the arguments put into config.status by always using `=' for an option with an argument. Pass a presumed --host or --target explicitly.
This commit is contained in:
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
|||||||
|
Tue Nov 21 14:08:28 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* configure.in: Strip --host and --target options from
|
||||||
|
CONFIG_ARGUMENTS, and always configure for --host only. Add
|
||||||
|
--with-cross-host option when building with a cross-compiler.
|
||||||
|
* configure: Canonicalize the arguments put into config.status by
|
||||||
|
always using `=' for an option with an argument. Pass a presumed
|
||||||
|
--host or --target explicitly.
|
||||||
|
|
||||||
|
Fri Nov 17 17:50:30 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
|
* config.sub: Merge -macos*, -magic*, -pe*, and -win32 cases
|
||||||
|
into general OS recognition case.
|
||||||
|
|
||||||
Fri Nov 17 17:42:25 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
Fri Nov 17 17:42:25 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||||
|
|
||||||
* configure.in (target_configdirs): add target-winsup only
|
* configure.in (target_configdirs): add target-winsup only
|
||||||
|
34
configure
vendored
34
configure
vendored
@ -45,7 +45,7 @@ symbolic_link='ln -s'
|
|||||||
|
|
||||||
Makefile=Makefile
|
Makefile=Makefile
|
||||||
Makefile_in=Makefile.in
|
Makefile_in=Makefile.in
|
||||||
arguments=$*
|
arguments=
|
||||||
build_alias=
|
build_alias=
|
||||||
cache_file=
|
cache_file=
|
||||||
cache_file_option=
|
cache_file_option=
|
||||||
@ -137,12 +137,17 @@ do
|
|||||||
case $option in
|
case $option in
|
||||||
--*=*)
|
--*=*)
|
||||||
optarg=`echo $option | sed -e 's/^[^=]*=//'`
|
optarg=`echo $option | sed -e 's/^[^=]*=//'`
|
||||||
|
arguments="$arguments $option"
|
||||||
;;
|
;;
|
||||||
# These options have mandatory values. Since we didn't find an = sign,
|
# These options have mandatory values. Since we didn't find an = sign,
|
||||||
# the value must be in the next argument
|
# the value must be in the next argument
|
||||||
--b* | --cache* | --ex* | --ho* | --pre* | --program-p* | --program-s* | --program-t* | --si* | --sr* | --ta* | --tm* | --x-*)
|
--b* | --cache* | --ex* | --ho* | --pre* | --program-p* | --program-s* | --program-t* | --si* | --sr* | --ta* | --tm* | --x-*)
|
||||||
optarg=$1
|
optarg=$1
|
||||||
shift
|
shift
|
||||||
|
arguments="$arguments $option=$optarg"
|
||||||
|
;;
|
||||||
|
--*)
|
||||||
|
arguments="$arguments $option"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -353,6 +358,8 @@ case "${fatal}" in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
host_alias=$undefs
|
host_alias=$undefs
|
||||||
|
arguments="--host=$host_alias $arguments"
|
||||||
|
undefs=NOUNDEFS
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
@ -367,6 +374,7 @@ case "${fatal}" in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
target_alias=$undefs
|
target_alias=$undefs
|
||||||
|
arguments="--target=$target_alias $arguments"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
@ -440,7 +448,18 @@ case "${srcdir}" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*)
|
||||||
|
# Set srcdir to "." if that's what it is.
|
||||||
|
# This is important for multilib support.
|
||||||
|
if [ ! -d ${srcdir} ] ; then
|
||||||
|
echo "Invalid source directory ${srcdir}" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
pwd=`pwd`
|
||||||
|
srcpwd=`cd ${srcdir} ; pwd`
|
||||||
|
if [ "${pwd}" = "${srcpwd}" ] ; then
|
||||||
|
srcdir=.
|
||||||
|
fi
|
||||||
esac
|
esac
|
||||||
|
|
||||||
### warn about some conflicting configurations.
|
### warn about some conflicting configurations.
|
||||||
@ -670,8 +689,8 @@ if [ "${build}" != "${host}" ]; then
|
|||||||
|
|
||||||
tools="AR AR_FOR_TARGET AS AS_FOR_TARGET BISON CC_FOR_BUILD"
|
tools="AR AR_FOR_TARGET AS AS_FOR_TARGET BISON CC_FOR_BUILD"
|
||||||
tools="${tools} CC_FOR_TARGET CXX_FOR_TARGET HOST_PREFIX"
|
tools="${tools} CC_FOR_TARGET CXX_FOR_TARGET HOST_PREFIX"
|
||||||
tools="${tools} HOST_PREFIX_1 LEX MAKEINFO NM NM_FOR_TARGET"
|
tools="${tools} HOST_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
|
||||||
tools="${tools} RANLIB RANLIB_FOR_TARGET"
|
tools="${tools} NM_FOR_TARGET RANLIB RANLIB_FOR_TARGET"
|
||||||
|
|
||||||
for var in ${tools}; do
|
for var in ${tools}; do
|
||||||
if [ -z "`eval 'echo $'"${var}"`" -a -r Makefile ]; then
|
if [ -z "`eval 'echo $'"${var}"`" -a -r Makefile ]; then
|
||||||
@ -700,6 +719,8 @@ s/\\\n//g
|
|||||||
CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-gcc}
|
CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-gcc}
|
||||||
HOST_PREFIX=${build_alias}-
|
HOST_PREFIX=${build_alias}-
|
||||||
HOST_PREFIX_1=${build_alias}-
|
HOST_PREFIX_1=${build_alias}-
|
||||||
|
LD=${LD-${host_alias}-ld}
|
||||||
|
LD_FOR_TARGET=${LD_FOR_TARGET-${target_alias}-ld}
|
||||||
MAKEINFO=${MAKEINFO-makeinfo}
|
MAKEINFO=${MAKEINFO-makeinfo}
|
||||||
NM=${NM-${host_alias}-nm}
|
NM=${NM-${host_alias}-nm}
|
||||||
NM_FOR_TARGET=${NM_FOR_TARGET-${target_alias}-nm}
|
NM_FOR_TARGET=${NM_FOR_TARGET-${target_alias}-nm}
|
||||||
@ -748,6 +769,7 @@ s/\\\n//g
|
|||||||
export AS
|
export AS
|
||||||
export AR
|
export AR
|
||||||
export CC_FOR_BUILD
|
export CC_FOR_BUILD
|
||||||
|
export LD
|
||||||
export NM
|
export NM
|
||||||
export RANLIB
|
export RANLIB
|
||||||
else
|
else
|
||||||
@ -757,7 +779,7 @@ else
|
|||||||
for dir in $PATH; do
|
for dir in $PATH; do
|
||||||
test -z "$dir" && dir=.
|
test -z "$dir" && dir=.
|
||||||
if test -f $dir/gcc; then
|
if test -f $dir/gcc; then
|
||||||
CC="gcc"
|
CC="gcc -O2"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -765,7 +787,7 @@ else
|
|||||||
CC=${CC-cc}
|
CC=${CC-cc}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CXX=${CXX-"g++ -O"}
|
CXX=${CXX-"gcc"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CC
|
export CC
|
||||||
|
18
configure.in
18
configure.in
@ -654,9 +654,21 @@ fi
|
|||||||
# Record target_configdirs and the configure arguments in Makefile.
|
# Record target_configdirs and the configure arguments in Makefile.
|
||||||
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
|
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
|
||||||
targargs=`echo "${arguments}" | \
|
targargs=`echo "${arguments}" | \
|
||||||
sed -e 's/--*norecursion//' \
|
sed -e 's/--norecursion//' \
|
||||||
-e 's/--*cache[a-z-]*=[^ ]*//' \
|
-e 's/--cache[a-z-]*=[^ ]*//' \
|
||||||
-e 's/--*cache[a-z-]*[ ][ ]*[^ ]*//'`
|
-e 's/--ho[a-z-]*=[^ ]*//' \
|
||||||
|
-e 's/--ta[a-z-]*=[^ ]*//'`
|
||||||
|
|
||||||
|
# Passing a --with-cross-host argument lets the target libraries know
|
||||||
|
# whether they are being built with a cross-compiler or being built
|
||||||
|
# native. However, it would be better to use other mechanisms to make the
|
||||||
|
# sorts of decisions they want to make on this basis. Please consider
|
||||||
|
# this option to be deprecated. FIXME.
|
||||||
|
if [ x${is_cross_compiler} = xyes ]; then
|
||||||
|
targargs="--with-cross-host=${host_alias} $[targargs}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
targargs="--host=${target_alias} ${targargs}"
|
||||||
sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
|
sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
|
||||||
-e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \
|
-e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \
|
||||||
-e "s%^TARGET_SUBDIR[ ]*=.*$%TARGET_SUBDIR = ${target_subdir}%" \
|
-e "s%^TARGET_SUBDIR[ ]*=.*$%TARGET_SUBDIR = ${target_subdir}%" \
|
||||||
|
Reference in New Issue
Block a user