Source: bochs
Version: 2.6.9+dfsg-4
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

boch started failing to cross build in the -4 upload. I guess this is
due to the gtk2 removal and now we exercise different paths in
./configure that happen to be broken upstream. Notably, -pthread goes
missing. Generally, this seems to stem from cross/native differences
made by upstream. The attached patch removes two such differences and
makes bochs cross buildable again. Please consider applying it.

Helmut
--- bochs-2.6.9+dfsg.orig/configure.in
+++ bochs-2.6.9+dfsg/configure.in
@@ -2874,7 +2874,7 @@
 AC_SUBST(DIALOG_OBJS)
 AC_SUBST(EXPORT_DYNAMIC)
 
-if test "$use_curses" = yes -a "$cross_configure" = 0; then
+if test "$use_curses" = yes; then
   AC_CHECK_LIB(curses, mvaddch, GUI_LINK_OPTS_TERM='-lcurses')
   AC_CHECK_LIB(ncurses, mvaddch, GUI_LINK_OPTS_TERM='-lncurses')
   AC_CHECK_LIB(termlib, mvaddch, GUI_LINK_OPTS_TERM='-ltermlib')
@@ -3129,7 +3129,7 @@
 
 # since some features need the pthread library, check that it was found.
 # But on win32 platforms, the pthread library is not needed.
-if test "$cross_configure" = 0; then
+if test "$target_os" != "windows"; then
   # assuming that the GUI debuggers require pthreads or are for Win32
   if test "$pthread_ok" = yes; then
     if test "$with_rfb" = yes; then

Reply via email to