Miłosz Staszewski wrote:
> Hello all,
>
> At first I would like to sorry about little OT, be cause the problem I'm
> having it's not yet Amithlon related. At the moment it's general-Amiga
> thing.
>
> I've problems with cross-compilation for AmigaOS under Linux.
>
> I've downloaded the cross-compiler from:
>
> http://www.lysator.liu.se/~lcs/files/gg-cross
>
> and probably installed it properly be cause I was able to compile some
> simple things for m68k-AmigaOS and Amithlon-x86-native.
>
> Now the time has come to try playing with something more complex. I decided
> to compile lame (mp3 encoder).
> I've got sources that compile without any problems under GCC working under
> AmigaOS. So I tried to make the same thing under Linux (target:
> m68k-amigaos). But I can't make it working.
>
> When I run './configure' under Linux it configures everything for
> native-x86-Linux build. And this is not what I want :(
>
> './configure --target=m68k-amigaos' doesn't help. The result is exaclty the
> same.
You should use --host, not --target. --target is when you're building
something that should *generate code* for a different system. --host is
what the resulting binary should *run* on and --build is used to
configure the current system (normally, configure realizes this by itself).
Also note that in order for configure to work properly, you should have
something like this in the beginning of configure.in:
AC_CANONICAL_SYSTEM
AC_CHECK_TOOL( CC, gcc, : )
--
---- Martin Blom --------------------------- martin@... ----
Eccl 1:18 http://martin.blom.org/