Source: netexpect Version: 0.22-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
netexpect fails to cross build from source, because configure.ac hard codes the build architecture pkg-config. Using the PKG_CHECK_MODULES macro is generally preferred and fixes the issue. After applying the attached patch, a build still fails due to #804369. Helmut
--- netexpect-0.22.orig/configure.ac +++ netexpect-0.22/configure.ac @@ -36,8 +36,9 @@ fi # wireshark uses GLib -CFLAGS="$CFLAGS `pkg-config --cflags glib-2.0`" -LIBS="$LIBS `pkg-config --libs glib-2.0`" +PKG_CHECK_MODULES([GLIB],[glib-2.0]) +CFLAGS="$CFLAGS $GLIB_CFLAGS" +LIBS="$LIBS $GLIB_LIBS" # Checks for libraries.