Source: netatalk Version: 3.1.12~ds-7 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
netatalk fails to cross build from source, because it runs the build architecture compiler via dtrace. Everything else works now. dtrace is a strange thing and part of systemtap. In order to use it during cross compilation, one must export the compiler as CC environment variable. The attached patch implements that. Please consider applying it. Once doing so, netatalk finally becomes cross buildable. Helmut
--- netatalk-3.1.12~ds.orig/etc/afpd/Makefile.am +++ netatalk-3.1.12~ds/etc/afpd/Makefile.am @@ -90,7 +90,7 @@ DTRACE_OBJ = afpd-afp_dsi.o afpd-fork.o afpd-appl.o afpd-catsearch.o afpd-directory.o afpd-enumerate.o afpd-file.o afpd-filedir.o afp_dtrace.o: $(top_srcdir)/include/atalk/afp_dtrace.d $(DTRACE_OBJ) if test -f afp_dtrace.o ; then rm -f afp_dtrace.o ; fi - $(LIBTOOL) --mode=execute dtrace -G -s $(top_srcdir)/include/atalk/afp_dtrace.d -o afp_dtrace.o $(DTRACE_OBJ) + CC=$(CC) $(LIBTOOL) --mode=execute dtrace -G -s $(top_srcdir)/include/atalk/afp_dtrace.d -o afp_dtrace.o $(DTRACE_OBJ) afpd_LDADD += afp_dtrace.o @DTRACE_LIBS@ CLEANFILES += afp_dtrace.o endif