building with osxcross

This commit is contained in:
Cosmin Apreutesei
2015-11-03 12:01:56 +00:00
parent cb7c655323
commit dfaecb4d74
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -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
View File
@@ -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
View File
@@ -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