From 3310b446b82e4a4da40cd536445222042a776757 Mon Sep 17 00:00:00 2001 From: BeholdersEye Date: Thu, 24 Feb 2022 10:37:15 -0500 Subject: [PATCH] Revert "Update winbuild.sh" This reverts commit a816103bf2637fe56bfb7c29fe99e8ce849e6cc8. --- buildscripts/winbuild.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildscripts/winbuild.sh b/buildscripts/winbuild.sh index c26766f6..66a2f7aa 100755 --- a/buildscripts/winbuild.sh +++ b/buildscripts/winbuild.sh @@ -134,13 +134,13 @@ function build_dll(){ cd src/bitmsghash || exit 1 if [ "${MACHINE_TYPE}" == 'x86_64' ]; then echo "Create dll" - x86_64-w64-mingw32-g++ -D_WIN32 -Wall -O3 -march=x86-64 \ + x86_64-w64-mingw32-g++ -D_WIN32 -Wall -O3 -march=native \ "-I$HOME/.wine64/drive_c/OpenSSL-Win64/include" \ -I/usr/x86_64-w64-mingw32/include \ "-L$HOME/.wine64/drive_c/OpenSSL-Win64/lib" \ -c bitmsghash.cpp x86_64-w64-mingw32-g++ -static-libgcc -shared bitmsghash.o \ - -D_WIN32 -O3 -march=x86-64 \ + -D_WIN32 -O3 -march=native \ "-I$HOME/.wine64/drive_c/OpenSSL-Win64/include" \ "-L$HOME/.wine64/drive_c/OpenSSL-Win64" \ -L/usr/lib/x86_64-linux-gnu/wine \ @@ -148,13 +148,13 @@ function build_dll(){ -o bitmsghash64.dll -Wl,--out-implib,bitmsghash.a else echo "Create dll" - i686-w64-mingw32-g++ -D_WIN32 -Wall -m32 -O3 -march=i686 \ + i686-w64-mingw32-g++ -D_WIN32 -Wall -m32 -O3 -march=native \ "-I$HOME/.wine32/drive_c/OpenSSL-Win32/include" \ -I/usr/i686-w64-mingw32/include \ "-L$HOME/.wine32/drive_c/OpenSSL-Win32/lib" \ -c bitmsghash.cpp i686-w64-mingw32-g++ -static-libgcc -shared bitmsghash.o \ - -D_WIN32 -O3 -march=i686 \ + -D_WIN32 -O3 -march=native \ "-I$HOME/.wine32/drive_c/OpenSSL-Win32/include" \ "-L$HOME/.wine32/drive_c/OpenSSL-Win32/lib/MinGW" \ -fPIC -shared -lcrypt32 -leay32 -lwsock32 \