Lauri Hyvärinen wrote:
Nicolas Cannasse wrote:

Now the compile flows as follows:
ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
make: *** [bin/std.ndll] Error 1

Where on earth is MACOSX_DEPLOYMENT_TARGET defined and what it is doing at 10.1 when I'm using 10.2?


I don't know what -undefined dynamic_lookup is supposed to do, since the OSX Makefile config was contributed by Lauri Hyvärinen. Maybe try without it ?


MACOSX_DEPLOYMENT_TARGET environment variable is by default set to 10.1. You can set it by your self to something else. As an attachment is a patch that sets the MACOSX_DEPLOYMENT_TARGET in the NekoVM's Makefile to 10.3. The current Makefile doesn't compile with 10.2, at least because the -undefined dynamic_lookup flag is only supported in OS X versions 10.3 and higher. What you need to do to make
std.ndll compile is briefly described here:
http://66.249.93.104/search?q=cache:37ULM0n9A84J:www.metapkg.org/wiki/12

Cheers,
Lauri

Thanks.

I think that "-flat_namespace -undefined suppress" (flat namespaces) might cause quite a lot of problems. There was same problems on Linux before since some symbols for example where exported by a Neko NDLL and by MySQL library and where causing runtime crashs since the wrong function was called... This was fixed using gcc -WBsymbolic

As for OSX, it seems then that I need to use "-bundle_loader and link to all libraries and frameworks that the executable loader links to". Could you suggest a patch using this method ?

Best,
Nicolas

---
Neko : One VM to run them all

Reply via email to