5147c20eaa
This change allows to build Windows binaries without dependencies on toolchain-specific libraries (like `libc++.dll`). It allows to perform version updates by copying of single `bochs.exe`, without the need for searching and distribution of linked DLLs. --------- Co-authored-by: Volker Ruppert <Volker.Ruppert@t-online.de>
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Example script for configuring and compiling Bochs on Linux for Windows.
|
|
#
|
|
|
|
CC="x86_64-w64-mingw32-gcc"
|
|
CXX="x86_64-w64-mingw32-g++"
|
|
CFLAGS="-O3 -Wall -Wno-format -mno-ms-bitfields"
|
|
CXXFLAGS="$CFLAGS"
|
|
WINDRES="x86_64-w64-mingw32-windres"
|
|
DLLTOOL="x86_64-w64-mingw32-dlltool"
|
|
|
|
export CC
|
|
export CXX
|
|
export CFLAGS
|
|
export CXXFLAGS
|
|
export WINDRES
|
|
export DLLTOOL
|
|
|
|
./configure --host=x86_64-linux --target=x86_64-mingw32 \
|
|
--enable-sb16 \
|
|
--enable-ne2000 \
|
|
--enable-all-optimizations \
|
|
--enable-static-link \
|
|
--enable-cpu-level=6 \
|
|
--enable-x86-64 \
|
|
--enable-vmx=2 \
|
|
--enable-svm \
|
|
--enable-avx \
|
|
--enable-evex \
|
|
--enable-cet \
|
|
--enable-pci \
|
|
--enable-clgd54xx \
|
|
--enable-voodoo \
|
|
--enable-usb \
|
|
--enable-usb-ohci \
|
|
--enable-usb-ehci \
|
|
--enable-usb-xhci \
|
|
--enable-busmouse \
|
|
--enable-es1370 \
|
|
--enable-e1000 \
|
|
--enable-show-ips \
|
|
--disable-readline \
|
|
--with-win32 --with-rfb --with-nogui \
|
|
${CONFIGURE_ARGS}
|