mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Windows MinGW: Add build flags and support for ncurses with MinGW in order to enable the debugger
This commit is contained in:
@@ -8,6 +8,6 @@ echo Compiling our internal SDL 1.x
|
||||
echo Compiling DOSBox-X
|
||||
chmod +x configure
|
||||
# FIXME: I would like MinGW builds to enable the debugger, eventually
|
||||
./configure --enable-core-inline --prefix=/usr || exit 1
|
||||
./configure --enable-core-inline --enable-debug=heavy --prefix=/usr || exit 1
|
||||
make -j3 || exit 1
|
||||
|
||||
|
@@ -8,6 +8,6 @@ echo Compiling our internal SDL 1.x
|
||||
echo Compiling DOSBox-X
|
||||
chmod +x configure
|
||||
# FIXME: I would like MinGW builds to enable the debugger, eventually
|
||||
./configure --enable-core-inline --disable-mt32 --prefix=/usr || exit 1
|
||||
./configure --enable-core-inline --enable-debug=heavy --disable-mt32 --prefix=/usr || exit 1
|
||||
make -j3 || exit 1
|
||||
|
||||
|
14
configure.ac
14
configure.ac
@@ -249,7 +249,7 @@ case "$host" in
|
||||
*-*-cygwin* | *-*-mingw32*)
|
||||
dnl Some stuff for the ico
|
||||
AC_CHECK_TOOL(WINDRES, windres, :)
|
||||
LDFLAGS="-static -static-libgcc -static-libstdc++ $LDFLAGS"
|
||||
LDFLAGS="-static -static-libgcc -static-libstdc++ $LDFLAGS"
|
||||
;;
|
||||
*)
|
||||
WINDRES=":"
|
||||
@@ -357,6 +357,18 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl Some stuff for the icon.
|
||||
case "$host" in
|
||||
*-*-cygwin* | *-*-mingw32*)
|
||||
dnl MinGW puts ncurses headers in a subdir
|
||||
ncursescfg=`ncursesw6-config --cflags`
|
||||
CXXFLAGS="$CXXFLAGS $ncursescfg"
|
||||
;;
|
||||
*)
|
||||
WINDRES=":"
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl LIBRARY TEST: ncurses
|
||||
AC_CHECK_HEADER(curses.h,have_curses_h=yes,)
|
||||
AC_CHECK_LIB(curses, initscr, have_curses_lib=yes, , )
|
||||
|
Reference in New Issue
Block a user