Glenn Fowler wrote:
> we haven't cross-compiled in a while and it looks like bitrot set in
>
> try this patch to bin/package (and src/cmd/INIT/package.sh)
>
> ---
> _hostinfo_="$_hostinfo_ $rating"
> ;;
> type|canon)
> - case $canon in
> - '') case $cc in
> + case $CROSS:$canon in
> + 0:) case $cc in
> cc) case $KEEP_HOSTTYPE:$HOSTTYPE in
> 0:?*) if test -d
> $PACKAGEROOT/arch/$HOSTTYPE
> then KEEP_HOSTTYPE=1
> ---
>
This unfortunately removes just the error message. A package make runs fine but
is building for the host and not for the target.
In fact the used compiler is "cc" (->/usr/bin/cc) and not "mipsel-linux-gcc"
like defined in the package command line.
I tried to work around this by creating a fake cc as $INSTALLROOT/bin/cc
containing <PATH_TO>mipsel-linux-gcc "$@"
But building fails again because the first correctly generated binary (proto) is
executed on the host instead of the target.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users