fix build scripts

This commit is contained in:
Mikhail Kochegarov
2022-12-13 16:44:35 +10:00
parent bcdfea0a0a
commit 41f11af18d
17 changed files with 12 additions and 10 deletions
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Regular → Executable
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
-2
View File
@@ -1,2 +0,0 @@
/* force mempcy to be from earlier compatible system */
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+1
View File
@@ -0,0 +1 @@
P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc" D=libz.so A=libz.a ./build.sh
+1 -1
View File
@@ -1 +1 @@
P=linux64 C="-fPIC -include _memcpy.h -DHAVE_UNISTD_H" L="-s -static-libgcc" D=libz.so A=libz.a ./build.sh
P=linux64 C="-fPIC" L="-s -static-libgcc" D=libz.so A=libz.a ./build.sh
+2
View File
@@ -0,0 +1,2 @@
[ `uname` = Linux ] && { export X=i686-w64-mingw32-; }
P=mingw32 C="-DZLIB_DLL -fPIC" L="-s -static-libgcc" D=z.dll A=z.a ./build.sh
+2 -1
View File
@@ -1 +1,2 @@
P=mingw64 C=-DZLIB_DLL L="-s -static-libgcc" D=z.dll A=z.a ./build.sh
[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; }
P=mingw64 C="-DZLIB_DLL -fPIC" L="-s -static-libgcc" D=z.dll A=z.a ./build.sh
+2 -3
View File
@@ -1,4 +1,3 @@
[ `uname` = Linux ] && export X=x86_64-apple-darwin11-
P=osx64 C="-arch x86_64 -mmacosx-version-min=10.9" \
L="-arch x86_64 -mmacosx-version-min=10.9 -install_name @rpath/libz.dylib" \
[ `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 -install_name @rpath/libz.dylib" \
D=libz.dylib A=libz.a ./build.sh
+4 -3
View File
@@ -1,6 +1,7 @@
${X}gcc -c -O2 $C -DHAVE_MEMCPY *.c -I.
${X}gcc *.o -shared -o ../../bin/$P/$D $L
[ "$CC" ] || CC=gcc
mkdir -p ../../bin/$P
${X}${CC} -c -O2 $C *.c -I.
${X}${CC} *.o -shared -o ../../bin/$P/$D $L
rm -f ../../bin/$P/$A
rm -f ../../bin/$P/$A
${X}ar rcs ../../bin/$P/$A *.o
rm *.o