LuaJIT OSX x64 Linker Options
Posted: Mon Jun 06, 2016 8:47 am
Hi,
I'm trying to bind LuaJIT (in fact Terra) to PB and so far everything is working correctly on Windows and Linux but not on Mac OSX.
In the LuaJIT documentation it is mentioned:
The file contains one instruction per line as specified in the PB documentation:
But still no success. In fact if I write some garbage in the linker options file I get no error from PB at compile time so I even wonder if the linker options file is even used.
Does anyone has some experience with linker options on Mac OSX or even perhaps with LuaJIT on Mac OSX ?
Cheers,
Guy.
I'm trying to bind LuaJIT (in fact Terra) to PB and so far everything is working correctly on Windows and Linux but not on Mac OSX.
In the LuaJIT documentation it is mentioned:
I think the issue comes from that so I've tried to include some linker options in a text file and set the file in the linker option file from the IDE compiler options.../.. If you're building a 64 bit application on OSX which links directly or indirectly against LuaJIT, you need to link your main executable with these flags:Code: Select all
-pagezero_size 10000 -image_base 100000000
The file contains one instruction per line as specified in the PB documentation:
Code: Select all
-pagezero_size 10000
-image_base 100000000
Does anyone has some experience with linker options on Mac OSX or even perhaps with LuaJIT on Mac OSX ?
Cheers,
Guy.