add vxbuild-cross support

This commit is contained in:
Mikhail Kochegarov
2022-12-14 18:45:18 +03:00
parent f26ea9de5e
commit 6ba76c8452
16 changed files with 12 additions and 6 deletions
Binary file not shown.
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.
+1
View File
@@ -0,0 +1 @@
P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc" D=libgenx.so A=libgenx.a ./build.sh
+1 -1
View File
@@ -1 +1 @@
P=linux64 C=-fPIC L="-s -static-libgcc" D=libgenx.so A=libgenx.a ./build.sh
P=linux64 C="-fPIC" L="-s -static-libgcc" D=libgenx.so A=libgenx.a ./build.sh
+2
View File
@@ -0,0 +1,2 @@
[ `uname` = Linux ] && { export X=i686-w64-mingw32-; }
P=mingw32 C="-fPIC" L="-s -static-libgcc" D=genx.dll A=genx.a ./build.sh
+2 -1
View File
@@ -1 +1,2 @@
P=mingw64 L="-s -static-libgcc" D=genx.dll A=genx.a ./build.sh
[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; }
P=mingw64 C="-fPIC" L="-s -static-libgcc" D=genx.dll A=genx.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 -install_name @rpath/libgenx.dylib" \
[ `uname` = Linux ] && { export X=x86_64-apple-darwin19-; export CC=clang; }
P=osx64 C="-arch x86_64 -fPIC" L="-arch x86_64 -install_name @rpath/libgenx.dylib" \
D=libgenx.dylib A=libgenx.a ./build.sh
+4 -2
View File
@@ -1,5 +1,7 @@
${X}gcc -c -O2 $C genx.c charProps.c -Wall -pedantic
${X}gcc *.o -shared -o ../../bin/$P/$D $L
[ "$CC" ] || CC=gcc
mkdir -p ../../bin/$P
${X}${CC} -c -O2 $C genx.c charProps.c -Wall -pedantic
${X}${CC} *.o -shared -o ../../bin/$P/$D $L
rm -f ../../bin/$P/$A
${X}ar rcs ../../bin/$P/$A *.o
rm *.o