Improved cross compiling support on Linux for Windows.
- In case of cross compiling of the win32 gui, use the environment variable WINDRES for the name of the resource compiler. - Added example shortcut script for cross compiling on Linux for Windows.
This commit is contained in:
parent
d61e3eca9b
commit
81ecfcb10f
36
bochs/.conf.win64-cross-mingw32
Normal file
36
bochs/.conf.win64-cross-mingw32
Normal file
@ -0,0 +1,36 @@
|
||||
#!/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 --host=x86_64-linux --target=x86_64-mingw32 \
|
||||
--enable-sb16 \
|
||||
--enable-ne2000 \
|
||||
--enable-all-optimizations \
|
||||
--enable-cpu-level=6 \
|
||||
--enable-x86-64 \
|
||||
--enable-vmx=2 \
|
||||
--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 \
|
||||
--with-win32 --with-rfb --with-nogui
|
6
bochs/configure
vendored
6
bochs/configure
vendored
@ -24821,7 +24821,11 @@ if test "$with_win32" = yes; then
|
||||
;;
|
||||
*-cygwin* | *-mingw32* | *-msys)
|
||||
if test "$with_wx" != yes; then
|
||||
RC_CMD="windres -I. -o "
|
||||
if test "$cross_compiling" = no; then
|
||||
RC_CMD="windres -I. -o "
|
||||
else
|
||||
RC_CMD="$WINDRES -I. -o "
|
||||
fi
|
||||
EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
|
||||
fi
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
|
||||
|
@ -2523,7 +2523,11 @@ if test "$with_win32" = yes; then
|
||||
;;
|
||||
*-cygwin* | *-mingw32* | *-msys)
|
||||
if test "$with_wx" != yes; then
|
||||
RC_CMD="windres -I. -o "
|
||||
if test "$cross_compiling" = no; then
|
||||
RC_CMD="windres -I. -o "
|
||||
else
|
||||
RC_CMD="$WINDRES -I. -o "
|
||||
fi
|
||||
EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
|
||||
fi
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
|
||||
|
Loading…
Reference in New Issue
Block a user