Source: hercules Version: 3.13-1 Tags: patch upstream User: [email protected] Usertags: ftcbfs
hercules fails to cross build from source, because an upstream Makefile.am includes -lltdl in a Makefile dependency. This triggers architecture-specific behaviour in make. It looks up the flag using the built-in library search path (for the build architecture). However libltdl is only installed for the host architecture, so the library isn't found and make gives up. One shouldn't list such flags in dependencies. Please consider applying the attached patch to make hercules cross buildable. Helmut
diff -u hercules-3.13/Makefile.am hercules-3.13/Makefile.am --- hercules-3.13/Makefile.am +++ hercules-3.13/Makefile.am @@ -446,13 +446,13 @@ hercules_LDFLAGS = $(HLDFLAGS) - hercules_DEPENDENCIES = libherc.la libhercs.la libhercd.la libhercu.la -lltdl $(HDEPS) + hercules_DEPENDENCIES = libherc.la libhercs.la libhercd.la libhercu.la $(HDEPS) if BUILD_SHARED herclin_SOURCES = herclin.c hdlmain.c herclin_LDADD = libherc.la libhercs.la libhercd.la libhercu.la -lltdl $(LDADD) herclin_LDFLAGS = $(HLDFLAGS) -herclin_DEPENDENCIES = libherc.la libhercs.la libhercd.la libhercu.la -lltdl $(HDEPS) +herclin_DEPENDENCIES = libherc.la libhercs.la libhercd.la libhercu.la $(HDEPS) endif # diff -u hercules-3.13/debian/changelog hercules-3.13/debian/changelog --- hercules-3.13/debian/changelog +++ hercules-3.13/debian/changelog @@ -1,3 +1,10 @@ +hercules (3.13-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Don't list -l flags in Makefile dependencies. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sat, 18 Apr 2020 18:10:13 +0200 + hercules (3.13-1) unstable; urgency=medium * New upstream release

