add support for vxbuild-cross build system

This commit is contained in:
Mikhail Kochegarov
2022-12-19 16:46:45 +10:00
parent baa7c890d0
commit 1182cb3701
17 changed files with 15 additions and 8 deletions
BIN
View File
Binary file not shown.
Binary file not shown.
Regular → Executable
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Regular → Executable
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc" D=cjson.so A=libcjson.a ./build.sh
+1 -1
View File
@@ -1 +1 @@
P=linux64 C=-fPIC L="-s -static-libgcc" D=cjson.so A=libcjson.a ./build.sh
P=linux64 C="-fPIC" L="-s -static-libgcc" D=cjson.so A=libcjson.a ./build.sh
+3
View File
@@ -0,0 +1,3 @@
[ `uname` = Linux ] && { export X=i686-w64-mingw32-; }
P=mingw32 D=cjson.dll A=cjson.a \
C="-fPIC" L="-s -static-libgcc ../../bin/$P/luajit.a" ./build.sh
+2 -1
View File
@@ -1,2 +1,3 @@
[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; }
P=mingw64 D=cjson.dll A=cjson.a \
L="-s -static-libgcc -L../../bin/mingw64 -llua51" ./build.sh
C="-fPIC" L="-s -static-libgcc ../../bin/$P/luajit.a" ./build.sh
+3 -3
View File
@@ -1,3 +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
[ `uname` = Linux ] && { export X=x86_64-apple-darwin19-; export CC=clang; }
P=osx64 D=cjson.so A=libcjson.a C="-arch x86_64 -fPIC" \
L="-arch x86_64 -static -undefined dynamic_lookup -Wno-static-in-inline" ./build.sh
+4 -2
View File
@@ -1,6 +1,8 @@
${X}gcc -c -O2 $C strbuf.c lua_cjson.c fpconv.c -I../lua-headers \
[ "$CC" ] || CC=gcc
mkdir -p ../../bin/$P/clib
${X}${CC} -c -O2 $C strbuf.c lua_cjson.c fpconv.c -I../lua-headers \
-Wall -pedantic -DDISABLE_INVALID_NUMBERS
${X}gcc *.o -shared -o ../../bin/$P/clib/$D $L
${X}${CC} *.o -shared -o ../../bin/$P/clib/$D $L
rm -f ../../bin/$P/$A
${X}ar rcs ../../bin/$P/$A *.o
rm *.o
+1 -1
View File
@@ -160,7 +160,7 @@ static const char *char2escape[256] = {
"\\u0018", "\\u0019", "\\u001a", "\\u001b",
"\\u001c", "\\u001d", "\\u001e", "\\u001f",
NULL, NULL, "\\\"", NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, "\\/",
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,