> I made a haXe install package for OSX (and consequently an install  
> package for Neko VM), but I still have a problem to solve before I  
> can upload it on the website. Neko is built with dynamic linking to  
> the Boehm gc lib and I'd like to link it statically to avoid the  
> problem of boehmgc distribution.
> 
> I tried to search for info on Apple's website but it seems that gcc's  
> -static option cannot be used on OS X because system libs are only  
> available as dynamic libraries. I checked the current neko binary  
> distribution on the site with otool -L and it seems that it also need  
> boehmgc to be installed to work, is that correct?
> 
> If I can't make a static build, I'll have to include boehmgc in the  
> package, which means writing a script to check for an existing  
> install of boehmgc. I'll wait for your input before proceeding this way.
> 
> Cheers,
> 
> Alex

On Windows, I couldn't link staticaly the Boehm GC because it uses some
DLLMain events to know which threads are currently running. I guess
there is not this problem on OSX but I can't tell either how to staticly
link a C library. What I know is that you need to either link all the .o
of BoehmGC with Neko or link all the .o in a .a (instead of a .so) and
link the .a with libneko. It would actually be better to staticly link
the GC.

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to