mirror of
https://github.com/vxcontrol/lualibs-cjson.git
synced 2026-07-01 15:47:55 -04:00
building with osxcross
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
[ `uname` = Linux ] && export X=i386-apple-darwin11-
|
||||
P=osx32 D=cjson.so A=libcjson.a C="-arch i386" \
|
||||
L="-arch i386 -undefined dynamic_lookup -Wno-static-in-inline" ./build.sh
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
[ `uname` = Linux ] && export X=x86_64-apple-darwin11-
|
||||
P=osx64 D=cjson.so A=libcjson.a C="-arch x86_64" \
|
||||
L="-arch x86_64 -undefined dynamic_lookup -Wno-static-in-inline" ./build.sh
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
gcc -c -O2 $C strbuf.c lua_cjson.c fpconv.c -I../lua-headers \
|
||||
${X}gcc -c -O2 $C strbuf.c lua_cjson.c fpconv.c -I../lua-headers \
|
||||
-Wall -pedantic -DDISABLE_INVALID_NUMBERS
|
||||
gcc *.o -shared -o ../../bin/$P/clib/$D $L
|
||||
ar rcs ../../bin/$P/$A *.o
|
||||
${X}gcc *.o -shared -o ../../bin/$P/clib/$D $L
|
||||
${X}ar rcs ../../bin/$P/$A *.o
|
||||
rm *.o
|
||||
|
||||
Reference in New Issue
Block a user