Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ufo/build/OSX/luajit.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
23 lines (22 sloc)
1.29 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -e | |
| LUAJIT=../../../luajit | |
| FLAGS='-mmacosx-version-min=10.5 -DLUAJIT_ENABLE_LUA52COMPAT' | |
| (rm *.tmp 1>/dev/null 2>/dev/null) && true | |
| make -C $LUAJIT -j BUILDMODE=dynamic CC="clang $FLAGS -arch i386" LUAJIT_SO=luajit.dylib TARGET_DYLIBPATH=luajit.dylib clean | |
| make -C $LUAJIT -j BUILDMODE=dynamic CC="clang $FLAGS -arch i386" LUAJIT_SO=luajit.dylib TARGET_DYLIBPATH=luajit.dylib amalg | |
| mv $LUAJIT/src/luajit luajit32.exe.tmp | |
| mv $LUAJIT/src/luajit.dylib luajit32.dylib.tmp | |
| make -C $LUAJIT -j BUILDMODE=dynamic CC="clang $FLAGS -arch x86_64" LUAJIT_SO=luajit.dylib TARGET_DYLIBPATH=luajit.dylib clean | |
| make -C $LUAJIT -j BUILDMODE=dynamic CC="clang $FLAGS -arch x86_64" LUAJIT_SO=luajit.dylib TARGET_DYLIBPATH=luajit.dylib amalg | |
| mv $LUAJIT/src/luajit luajit64.exe.tmp | |
| mv $LUAJIT/src/luajit.dylib luajit64.dylib.tmp | |
| lipo -create ./luajit*.exe.tmp -output luajit | |
| lipo -create ./luajit*.dylib.tmp -output luajit.dylib | |
| # rm *.tmp 1>/dev/null 2>/dev/null | |
| install_name_tool -id @loader_path/luajit.dylib luajit.dylib | |
| install_name_tool -change luajit.dylib @executable_path/luajit.dylib luajit | |
| git --git-dir=$LUAJIT/.git log -1 >> luajit | |
| git --git-dir=$LUAJIT/.git log -1 >> luajit.dylib | |
| mv luajit ../../bin/OSX | |
| mv luajit.dylib ../../bin/OSX/luajit.dylib | |
| (rm *.tmp 1>/dev/null 2>/dev/null) && true | |