[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] LuaRocks 2.0.1
- From: Geoff Leyland <geoff_leyland@...>
- Date: Sun, 1 Nov 2009 22:15:02 +1300
On 28/10/2009, at 5:48 AM, Hisham wrote:
Hello,
I'm happy to announce LuaRocks 2.0.1, a bugfix release:
Hi Hisham,
OS X 10.6's 64/32 bit support has caused a few headaches since I
rebuilt everything from MacPorts, and I guess most things rebuilt
x86_64. LuaJIT however is 32-bit. Rebuilding MacPorts with +universal
helped (I never knew what that flag meant...), and then the problem
that remained was that LuaRocks didn't build universal binaries.
I changed lines 223&4 of cfg.lua to
defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10.6; gcc
-arch i686 -arch x86_64"
defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10.6; gcc
-arch i686 -arch x86_64"
Which got me a a universal binary for lfs:
$ sudo luarocks install luafilesystem
...
$ lipo -info /opt/local/lib/lua/5.1/lfs.so
Architectures in the fat file: /opt/local/lib/lua/5.1/lfs.so are: i386
x86_64
... and compatibility with LuaJIT! Would an option for a universal
build be worth including in LuaRocks? (note that I don't know that
this is the *right* way to change cfg.lua, it's just a way that seems
to get me what I want)
Cheers and thanks,
Geoff