Created
March 28, 2021 06:24
-
-
Save mvanotti/3e1fb9e1fbd6c8a8d27e2876db421301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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