On 21/05/2010, at 08:51, Thomas Schilling wrote:

> Hm, I thought that flag was there in order to make SL-built binaries
> work with Leopard.  This caused problems with the Haskell Platform,
> whose GHC version was built with SL.  I don't think it would be a good
> idea to break Leopard support just yet.

Well, the problem is that the flag doesn't work with the current version of 
XCode (3.2.2). This is very easy to see:

quickie:tests rl$ gcc -m32 -o helloworld helloworld.c -Wl,-macosx_version_min 
-Wl,10.5
ld: symbol dyld_stub_binding_helper not defined (usually in 
crt1.o/dylib1.o/bundle1.o)
collect2: ld returned 1 exit status

It is possible to link in dylib1.o or dylib1.10.5.o manually but then the 
program produces a bus error when run.

I couldn't find anything about this particular problem but the fact that I now 
have /Developer/SDKs/MacOSX10.5.sdk on my disk suggests that you'd have to use 
that if you want compatibility with 10.5. Presumably, the flag wouldn't be 
needed in that case, although someone with access to both systems would have to 
try that out.

Roman

> On 20 May 2010 17:57, Ian Lynagh <[email protected]> wrote:
>> On Fri, May 21, 2010 at 01:19:45AM +1000, Roman Leshchinskiy wrote:
>>> 
>>> Are you running 10.5?
>> 
>> Yes.
>> 
>>> The problem seems to be that ghc passes these flags to gcc: 
>>> -Wl,-macosx_version_min -Wl,10.5. If I remove them it links ok. In fact, 
>>> gcc always seems to pass -macosx_version_min 10.6.3 to collect2 in addition 
>>> to ghc's flags.
>> 
>> OK, validate goes through here without that flag, so I've removed it.
>> Thanks for tracking it down.
>> 
>> 
>> Thanks
>> Ian
>> 
>> _______________________________________________
>> Cvs-ghc mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/cvs-ghc
>> 
> 
> 
> 
> -- 
> Push the envelope.  Watch it bend.

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to