Skip to content

Instantly share code, notes, and snippets.

@mvanotti
Created March 28, 2021 06:24
Show Gist options
  • Save mvanotti/3e1fb9e1fbd6c8a8d27e2876db421301 to your computer and use it in GitHub Desktop.
Save mvanotti/3e1fb9e1fbd6c8a8d27e2876db421301 to your computer and use it in GitHub Desktop.
#!/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"
export CC
export CXX
export CFLAGS
export CXXFLAGS
export WINDRES
./configure --build=x86_64-linux --host=x86_64-mingw32 --target=x86_64-mingw32 \
--enable-all-optimizations \
--enable-cpu-level=6 \
--enable-show-ips \
--disable-docbook \
--enable-debugger \
--disable-readline \
--prefix=/code/bochs-svn/ \
--with-win32 --with-nogui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment