Source: libsnl Version: 0.2.1.svn.18-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libsnl fails to cross build from source, because it uses the variable $(cname) for storing the C++ compiler. Most Makefile projects use $(CXX) and that's what debhelper passes. So libsnl uses the build architecture compiler and fails. After passing the non-standard variable, it cross builds successfully. Please consider applying the attached patch. Also consider asking upstream for renaming cname to CXX. Helmut
--- libsnl-0.2.1.svn.18/debian/changelog 2015-05-01 19:40:16.000000000 +0200 +++ libsnl-0.2.1.svn.18/debian/changelog 2018-08-13 05:49:29.000000000 +0200 @@ -1,3 +1,10 @@ +libsnl (0.2.1.svn.18-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass cross compiler as $(cname). (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 13 Aug 2018 05:49:29 +0200 + libsnl (0.2.1.svn.18-1) unstable; urgency=medium * Initial release (Closes: #783483) --- libsnl-0.2.1.svn.18/debian/rules 2015-07-04 22:28:44.000000000 +0200 +++ libsnl-0.2.1.svn.18/debian/rules 2018-08-13 05:49:29.000000000 +0200 @@ -20,7 +20,7 @@ dh_install override_dh_auto_build: - dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" + dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" 'cname=$$(CXX)' override_dh_auto_clean: rm -f src/*.o src/make.dep src/libSNL.so.0.2 src/snlTest