mirror of git://gcc.gnu.org/git/gcc.git
config-ml.in: Pass compiler flag corresponding to multidirs to subdir configures.
* config-ml.in: Pass compiler flag corresponding to multidirs to subdir configures. From-SVN: r28842
This commit is contained in:
parent
73049ebce3
commit
1250c76046
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Aug 25 01:12:25 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* config-ml.in: Pass compiler flag corresponding to multidirs to
|
||||||
|
subdir configures.
|
||||||
|
|
||||||
Wed Aug 4 02:07:14 1999 Jeffrey A Law (law@cygnus.com)
|
Wed Aug 4 02:07:14 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* config.sub (vxworks case): Use os=-vxworks, not os=vxworks.
|
* config.sub (vxworks case): Use os=-vxworks, not os=vxworks.
|
||||||
|
|
13
config-ml.in
13
config-ml.in
|
@ -627,7 +627,18 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
|
||||||
if [ -f ${ml_newsrcdir}/configure ]; then
|
if [ -f ${ml_newsrcdir}/configure ]; then
|
||||||
ml_recprog=${ml_newsrcdir}/configure
|
ml_recprog=${ml_newsrcdir}/configure
|
||||||
fi
|
fi
|
||||||
if eval ${ml_config_shell} ${ml_recprog} \
|
|
||||||
|
# find compiler flag corresponding to ${ml_dir}
|
||||||
|
for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do
|
||||||
|
dir=`echo $i | sed -e 's/;.*$//'`
|
||||||
|
if [ "${dir}" = "${ml_dir}" ]; then
|
||||||
|
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
ml_config_env='CC="${CC} $flags"'
|
||||||
|
|
||||||
|
if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
|
||||||
--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
|
--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
|
||||||
${ml_arguments} ${ml_srcdiroption} ; then
|
${ml_arguments} ${ml_srcdiroption} ; then
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue