I wanted to post a screenshot of the successful Mac build, but it was on Gophur’s Mac. +Delegation/-Screenshottery.
Took me a little while figuring out how to build lua 5.1 and tolua++ as universal binaries. On the mac, gcc will accept multiple “-arch” options.
What you have to watch out for is existing, single-arch entries and then you add the following flags to CFLAGS/CCFLAGS/LDFLAGS:
-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOS10.4u.sdk -arch i386 -arch ppc
You might also need to add “-force_cpusubtype_ALL” but I don’t quite get why.
The last gotcha for me was that I’d already gotten architecture-specific versions of the libraries installed which leads to some weird symptoms while trying to build new versions, and the lua5.1 sources appear to be missing the “doc” folder.