Windows MinGW: Add build flags and support for ncurses with MinGW in order to enable the debugger

This commit is contained in:
Jonathan Campbell
2018-03-06 17:24:47 -08:00
parent 65c1a1b368
commit 65c3110e2f
3 changed files with 15 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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, , )