Source: mffm-fftw Version: 1.7-4 Tags: patch upstream mffm-fftw fails to cross build from source, because it relinks using the wrong compiler during make install. In part this happens, because dh_auto_install doesn't pass cross tools to make install. Having make install compile or link stuff seems wrong though. This happens, because upstream's Makefile dependencies are broken. The attached patch fixes the dependencies and makes mffm-fftw cross buildable. Please consider applying it.
Helmut
--- mffm-fftw-1.7.orig/Makefile +++ mffm-fftw-1.7/Makefile @@ -40,9 +40,11 @@ docs: doxygen -libs: - $(MAKELIB),libfft.so.1 -o libfft.so.1 $(OBJ) -lfftw3 - $(MAKELIB),lib2Dfft.so.1 -o lib2Dfft.so.1 $(OBJ2D) -lfftw3 +libs: libfft.so.1 lib2Dfft.so.1 +libfft.so.1: $(OBJ) + $(MAKELIB),$@ -o $@ $^ -lfftw3 +lib2Dfft.so.1: $(OBJ2D) + $(MAKELIB),$@ -o $@ $^ -lfftw3 ex: #fftw V2 @@ -54,9 +56,7 @@ # $(CC) *.o -lfftw3 real2DFFTExample.cc -o real2DFFTExample # $(CC) *.o -lfftw3 realFFTExample.cc -o realFFTExample -install: $(OBJ) \ - $(OBJ2D) \ - libs \ +install: libfft.so.1 lib2Dfft.so.1 \ docs install --directory $(LIB) $(INC) $(DOCS)/html $(DOCS)/examples install lib* $(LIB)