Source: mdk3 Version: 6.0-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
mdk3 fails to cross build from source. It actually cross builds the binary during dh_auto_build correctly. But then it does dh_auto_install and since there is a bad makefile dependency, it does the build again - with the wrong compiler. Fixing the dependency fixes the cross build. Please consider applying the attached patch. Helmut
--- mdk3-6.0.orig/Makefile +++ mdk3-6.0/Makefile @@ -7,7 +7,7 @@ OSD = osdep LIBS = -L$(OSD) -l$(OSD) -LIBOSD = $(OSD)/lib$(OSD).so +LIBOSD = $(OSD)/lib$(OSD).a all: osd mdk3 @@ -19,7 +19,7 @@ $(MAKE) -C $(OSD) mdk3: $(LIBOSD) mdk3.c - $(CC) $(CFLAGS) $(CPPFLAGS) mdk3.c $(OSD)/lib$(OSD).a -o $@ $(LDFLAGS) $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) mdk3.c $(LIBOSD) -o $@ $(LDFLAGS) $(LIBS) install: mdk3 $(MAKE) -C $(OSD) install