diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-25 07:14:07 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-25 07:14:07 +0000 |
commit | 49c01eadb82f63c93aefb67c37766d09a7706d78 (patch) | |
tree | 6182bb289a39c6ca2fdaf7d94a16ff178a53c092 /config-ml.in | |
parent | b000c11e76a242ae1fe39db27c67aceaa0f4e117 (diff) | |
download | gcc-49c01eadb82f63c93aefb67c37766d09a7706d78.tar.gz |
* config-ml.in: Pass compiler flag corresponding to multidirs to
subdir configures.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28842 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config-ml.in')
-rw-r--r-- | config-ml.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/config-ml.in b/config-ml.in index ed8b1edfaf4..b0aa6c2930a 100644 --- a/config-ml.in +++ b/config-ml.in @@ -627,7 +627,18 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then if [ -f ${ml_newsrcdir}/configure ]; then ml_recprog=${ml_newsrcdir}/configure 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} \ ${ml_arguments} ${ml_srcdiroption} ; then true |