Source: afflib Version: 3.7.16-3 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
afflib fails to cross build from source, because configure.ac has special branches for handling cross compilation and those branches are completely broken. For instances, it decides to link -lws2_32, which is a win32 thing. Then it forcibly disabled qemu support for no good reason. After removing the broken cross compilation handling, afflib cross builds successfully. Please consider applying the attached patch. Helmut
--- afflib-3.7.16.orig/configure.ac +++ afflib-3.7.16/configure.ac @@ -46,7 +46,6 @@ AC_MSG_NOTICE([ LDFLAGS = ${LDFLAGS} ]) else AC_MSG_NOTICE([Cross Compiling --- will not update CPPFALGS or LDFLAGS with /usr/local, /opt/local or /sw]) - LIBS="$LIBS -lws2_32 -lgdi32" fi if test -r /bin/uname.exe ; then @@ -181,12 +180,6 @@ echo "disable_qemu: " ${disable_qemu} echo "enable_qemu: " ${enable_qemu} -if test x"${cross_compiling}" = "xyes" ; then - AC_MSG_NOTICE([cross-compiling: Disabling QEMU]) - enable_qemu="no"; -fi - - if test "x${enable_qemu}" = "xno" ; then enable_qemu="no" AC_DEFINE([DISABLE_QEMU],1,[User has disabled QEMU support])