add support for vxbuild-cross build system

This commit is contained in:
Mikhail Kochegarov
2022-12-19 17:08:55 +10:00
parent fade4b8822
commit 6fb4a7f6b4
16 changed files with 13 additions and 7 deletions
BIN
View File
Binary file not shown.
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.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc -pthread" D=core.so A=liblanes_core.a ./build.sh
+1 -1
View File
@@ -1 +1 @@
P=linux64 C=-fPIC L="-s -static-libgcc -pthread" D=core.so A=liblanes_core.a ./build.sh
P=linux64 C="-fPIC" L="-s -static-libgcc -pthread" D=core.so A=liblanes_core.a ./build.sh
+3
View File
@@ -0,0 +1,3 @@
[ `uname` = Linux ] && { export X=i686-w64-mingw32-; }
P=mingw32 C="-DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -fPIC" \
L="-s -static-libgcc ../../bin/$P/luajit.a" D=core.dll A=lanes_core.a ./build.sh
+3 -2
View File
@@ -1,2 +1,3 @@
P=mingw64 C="-DWINVER=0x0501 -D_WIN32_WINNT=0x0501" \
L="-s -static-libgcc -llua51" D=core.dll A=lanes_core.a ./build.sh
[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; }
P=mingw64 C="-DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -fPIC" \
L="-s -static-libgcc ../../bin/$P/luajit.a" D=core.dll A=lanes_core.a ./build.sh
+2 -2
View File
@@ -1,3 +1,3 @@
[ `uname` = Linux ] && export X=x86_64-apple-darwin11-
P=osx64 C="-arch x86_64" L="-arch x86_64 -undefined dynamic_lookup" \
[ `uname` = Linux ] && { export X=x86_64-apple-darwin19-; export CC=clang; }
P=osx64 C="-arch x86_64 -fPIC" L="-arch x86_64 -undefined dynamic_lookup" \
D=core.so A=liblanes_core.a ./build.sh
+3 -2
View File
@@ -1,6 +1,7 @@
[ "$CC" ] || CC=gcc
mkdir -p ../../bin/$P/clib/lanes
${X}gcc -c -O2 $C src/*.c -I../lua-headers -DNDEBUG
${X}gcc *.o -shared -o ../../bin/$P/clib/lanes/$D -L../../bin/$P $L
${X}${CC} -c -O2 $C src/*.c -I../lua-headers -DNDEBUG
${X}${CC} *.o -shared -o ../../bin/$P/clib/lanes/$D -L../../bin/$P $L
rm -f ../../bin/$P/$A
${X}ar rcs ../../bin/$P/$A *.o
rm *.o