Source: udns Version: 0.4-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
udns fails to cross build from source, because its configure script insists that a compiler only works if the resulting executables can be run. This is not the case for cross compilation. Please consider applying the attached patch to make udns cross buildable. Helmut
--- udns-0.4.orig/configure.lib +++ udns-0.4/configure.lib @@ -125,7 +125,7 @@ echo 'int main(int argc, char **argv) { return 0; }' >conftest.c if [ -n "$CC" ]; then - if ac_run $CC -o conftest conftest.c && ac_run ./conftest; then + if ac_run $CC -o conftest conftest.c; then ac_result "\$CC ($CC)" else ac_result no @@ -133,7 +133,7 @@ fi else for cc in gcc cc ; do - if ac_run $cc -o conftest conftest.c && ac_run ./conftest; then + if ac_run $cc -o conftest conftest.c; then ac_result "$cc" CC=$cc break @@ -163,7 +163,7 @@ if [ -n "$LIBS" ]; then ccld="$ccld $LIBS"; fi if ac_yesno "whenever the C compiler ($ccld) can produce executables" \ - ac_compile_run <<EOF + ac_link <<EOF int main() { return 0; } EOF then :