diff --git a/bin/linux32/libdasm_x86.a b/bin/linux32/libdasm_x86.a new file mode 100644 index 0000000..90d3b3a Binary files /dev/null and b/bin/linux32/libdasm_x86.a differ diff --git a/bin/linux32/libdasm_x86.so b/bin/linux32/libdasm_x86.so new file mode 100755 index 0000000..1fa32c8 Binary files /dev/null and b/bin/linux32/libdasm_x86.so differ diff --git a/bin/linux64/libdasm_x86.a b/bin/linux64/libdasm_x86.a index f5da347..dc50926 100644 Binary files a/bin/linux64/libdasm_x86.a and b/bin/linux64/libdasm_x86.a differ diff --git a/bin/linux64/libdasm_x86.so b/bin/linux64/libdasm_x86.so index 16954c2..ecadb08 100755 Binary files a/bin/linux64/libdasm_x86.so and b/bin/linux64/libdasm_x86.so differ diff --git a/bin/mingw32/dasm_x86.a b/bin/mingw32/dasm_x86.a new file mode 100644 index 0000000..e390edd Binary files /dev/null and b/bin/mingw32/dasm_x86.a differ diff --git a/bin/mingw32/dasm_x86.dll b/bin/mingw32/dasm_x86.dll new file mode 100755 index 0000000..5f6ccac Binary files /dev/null and b/bin/mingw32/dasm_x86.dll differ diff --git a/bin/mingw64/dasm_x86.a b/bin/mingw64/dasm_x86.a index 1fe0fc6..da3bac3 100644 Binary files a/bin/mingw64/dasm_x86.a and b/bin/mingw64/dasm_x86.a differ diff --git a/bin/mingw64/dasm_x86.dll b/bin/mingw64/dasm_x86.dll old mode 100644 new mode 100755 index dc1e4dc..1fefe8f Binary files a/bin/mingw64/dasm_x86.dll and b/bin/mingw64/dasm_x86.dll differ diff --git a/bin/osx64/libdasm_x86.a b/bin/osx64/libdasm_x86.a index eba4aa1..0eca8e2 100644 Binary files a/bin/osx64/libdasm_x86.a and b/bin/osx64/libdasm_x86.a differ diff --git a/bin/osx64/libdasm_x86.dylib b/bin/osx64/libdasm_x86.dylib old mode 100644 new mode 100755 index fd5fd8c..7b72317 Binary files a/bin/osx64/libdasm_x86.dylib and b/bin/osx64/libdasm_x86.dylib differ diff --git a/csrc/dynasm/build-linux32.sh b/csrc/dynasm/build-linux32.sh new file mode 100755 index 0000000..43f70cb --- /dev/null +++ b/csrc/dynasm/build-linux32.sh @@ -0,0 +1 @@ +P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc" D=libdasm_x86.so A=libdasm_x86.a ./build.sh diff --git a/csrc/dynasm/build-linux64.sh b/csrc/dynasm/build-linux64.sh index 2adfc29..edca7bc 100755 --- a/csrc/dynasm/build-linux64.sh +++ b/csrc/dynasm/build-linux64.sh @@ -1 +1 @@ -P=linux64 C=-fPIC L="-s -static-libgcc" D=libdasm_x86.so A=libdasm_x86.a ./build.sh +P=linux64 C="-fPIC" L="-s -static-libgcc" D=libdasm_x86.so A=libdasm_x86.a ./build.sh diff --git a/csrc/dynasm/build-mingw32.sh b/csrc/dynasm/build-mingw32.sh new file mode 100755 index 0000000..a5cc158 --- /dev/null +++ b/csrc/dynasm/build-mingw32.sh @@ -0,0 +1,2 @@ +[ `uname` = Linux ] && { export X=i686-w64-mingw32-; } +P=mingw32 C="-fPIC" L="-s -static-libgcc" D=dasm_x86.dll A=dasm_x86.a ./build.sh diff --git a/csrc/dynasm/build-mingw64.sh b/csrc/dynasm/build-mingw64.sh index a2497a7..ade04cc 100755 --- a/csrc/dynasm/build-mingw64.sh +++ b/csrc/dynasm/build-mingw64.sh @@ -1 +1,2 @@ -P=mingw64 L="-s -static-libgcc" D=dasm_x86.dll A=dasm_x86.a ./build.sh +[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; } +P=mingw64 C="-fPIC" L="-s -static-libgcc" D=dasm_x86.dll A=dasm_x86.a ./build.sh diff --git a/csrc/dynasm/build-osx64.sh b/csrc/dynasm/build-osx64.sh index ec8d352..15d7dce 100755 --- a/csrc/dynasm/build-osx64.sh +++ b/csrc/dynasm/build-osx64.sh @@ -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/libdasm_x86.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/libdasm_x86.dylib" \ D=libdasm_x86.dylib A=libdasm_x86.a ./build.sh diff --git a/csrc/dynasm/build.sh b/csrc/dynasm/build.sh index c48f4ef..3e67c20 100755 --- a/csrc/dynasm/build.sh +++ b/csrc/dynasm/build.sh @@ -1,5 +1,7 @@ -${X}gcc -c -O2 $C dasm_x86.c -DDASM_CHECKS -${X}gcc *.o -shared $L -o ../../bin/$P/$D +[ "$CC" ] || CC=gcc +mkdir -p ../../bin/$P +${X}${CC} -c -O2 $C dasm_x86.c -DDASM_CHECKS +${X}${CC} *.o -shared $L -o ../../bin/$P/$D rm -f ../../bin/$P/$A ${X}ar rcs ../../bin/$P/$A *.o rm *.o