Source: jhead Version: 1:3.08-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
jhead fails to cross build from source, because it uses the build architecture compiler. Looking closer, that use happens during dh_auto_install. What happens here is that jhead gets rebuild during dh_auto_install even though it already has been built during dh_auto_build. Since debhelper does not pass cross tools to dh_auto_install, this fails. The cause is the dependency on objdir. make considers it remade all the time and therefore has to rebuild everything else. To avoid this from happening, an order-only prerequisite should be used. I'm attaching a patch for your convenience. Helmut
--- jhead-3.08.orig/makefile +++ jhead-3.08/makefile @@ -31,7 +31,7 @@ objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \ $(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o -$(OBJ)/%.o:$(SRC)/%.c objdir +$(OBJ)/%.o:$(SRC)/%.c | objdir ${CC} $(CFLAGS) $(CPPFLAGS) -c $< -o $@ jhead: $(objs) jhead.h