Hi,
On Mon, 15 May 2006, Alexandre Oliva wrote:
On May 15, 2006, Michael Matz <matz@suse.de> wrote:
* config.host: Make assignments to host_xmake_file cumulative.
Ok, thanks
ssen@opendarwin.org mentioned that linux -> darwin cross compiler
would
break with the patch because config.host contains a hidden bug since
ever,
it currently contains:
case ${target} in
*-darwin*)
# Generic darwin host support.
out_host_hook_obj=host-darwin.o
host_xmake_file="${host_xmake_file} x-darwin"
;;
esac
I.e. selecting on $target. This seems wrong to me, but I can't test
any
change there. Can I replace it with testing for $host, ala the patch
below?
Ciao,
Michael.
* config.host (*-darwin*): Test $host, not $target.
--- config.host (revision 113823)
+++ config.host (working copy)
@@ -86,11 +86,11 @@ case ${host} in
esac
# Common parts for widely ported systems.
-case ${target} in
+case ${host} in
*-darwin*)
# Generic darwin host support.
out_host_hook_obj=host-darwin.o
- host_xmake_file=x-darwin
+ host_xmake_file="${host_xmake_file} x-darwin"
;;
esac