[fpc-pascal] Re: Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How? [SOLVED]

Reinier Olislagers reinierolislagers at gmail.com
Tue Aug 9 12:59:41 CEST 2011


On 9-8-2011 12:21, Torsten Bonde Christiansen wrote:
> On 2011-08-09 10:46, Reinier Olislagers wrote:
>> My pleasure - though I haven't finished yet&  may run into things.
>>
>> It seems you're setting up a 32 bit environment. Both my Linux (Debian)
>> and OSX machine are 64 bit - don't know if this will work.
> I've just tried to follow the guide, but seem to run into the same
> problem as many other apparently also do:
> 
> At global scope:
> cc1plus: warning: unrecognized command line option "-Wno-long-doubl
> 
> From what I can read on the web this is somehow related to 64-bit vs.
> 32-bit crosscompile, but I'm not sure how to solve it.
> 
> The following resources are an interesting read, but didn't really seem
> to get me any further.
> http://code.google.com/p/iphone-dev/issues/detail?id=212#makechanges
> http://code.google.com/p/iphone-dev/issues/detail?id=14
> 
> Neither of the CFLAGS/LDFLAGS options helped me, perhaps someone have
> done this succesfully on a Ubuntu 10.04 x86_64 like my system.
> 
I've put this on the wiki, don't know if it helps
On 64 bit Linux environments, fpc mailing list users have problems.
Perhaps this
[http://stackoverflow.com/questions/3024255/building-odcctools-in-a-64-bit-os
StackOverflow question and answer] can help: in the configure step,
you'd apparently need to set
CC="gcc -m32" CXX="g++ -m32" ./configure blah blah blah



More information about the fpc-pascal mailing list