Search the web
Sign In
New User? Sign Up
amithlondev · Amithlon-Dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Cross-compilation problems   Message List  
Reply | Forward Message #285 of 313 |
Re: Cross-compilation problems

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/



Fri Mar 5, 2004 7:09 am

leviticus_mb
Offline Offline
Send Email Send Email

Forward
Message #285 of 313 |
Expand Messages Author Sort by Date

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 ...
Miosz Staszewski
sofcik@...
Send Email
Mar 4, 2004
11:14 pm

... 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...
Martin Blom
leviticus_mb
Offline Send Email
Mar 5, 2004
7:09 am

Hello Martin, ... Thanks for these informations. I've compiled it successfully. For both m68k and i686 :) And thanks for this Amithlon cross-compiler. Really...
Miosz Staszewski
sofcik@...
Send Email
Mar 6, 2004
12:49 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help