Source: iverilog Version: 11.0-1.1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
iverilog fails to cross build from source, because it checks for the build architecture compiler at the end of the configure run when the LIBS variable is already set. As such, the macro includes those LIBS and fails to find them for the build architecture concluding that the build architecture compiler is broken. The solution is to run the macro early. Please consider applying the attached patch. Helmut
--- iverilog-11.0.orig/configure.ac +++ iverilog-11.0/configure.ac @@ -14,6 +14,7 @@ AC_CANONICAL_HOST dnl Checks for programs. AC_PROG_CC +AX_PROG_CC_FOR_BUILD AC_PROG_CXX AC_PROG_RANLIB AC_CHECK_TOOL(LD, ld, false) @@ -329,6 +330,5 @@ AC_MSG_ERROR(cannot configure white space in libdir: $libdir) fi AC_MSG_RESULT(ok) -AX_PROG_CC_FOR_BUILD AC_CONFIG_FILES([Makefile ivlpp/Makefile vhdlpp/Makefile vvp/Makefile vpi/Makefile driver/Makefile driver-vpi/Makefile cadpli/Makefile libveriuser/Makefile tgt-null/Makefile tgt-stub/Makefile tgt-vvp/Makefile tgt-vhdl/Makefile tgt-fpga/Makefile tgt-verilog/Makefile tgt-pal/Makefile tgt-vlog95/Makefile tgt-pcb/Makefile tgt-blif/Makefile tgt-sizer/Makefile]) AC_OUTPUT