Source: reaver Version: 1.4-2 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
reaver fails to cross build from source, because its build system fails to propagate the passed cross compiler to sub Makefiles. The attached patch fixes that and makes reaver cross build successfully. Please consider applying it. Helmut
Index: reaver-1.4/src/Makefile.in =================================================================== --- reaver-1.4.orig/src/Makefile.in +++ reaver-1.4/src/Makefile.in @@ -16,22 +16,22 @@ $(CC) $(CFLAGS) $(INC) wpscrack.c *.o $(LDFLAGS) -o reaver libwps.o: - (cd $(LIBWPS_DIR) && make) + $(MAKE) -C $(LIBWPS_DIR) 'CC=$(CC)' wps: libutils libcrypto - (cd wps && make) + $(MAKE) -C wps 'CC=$(CC)' libutils: - (cd utils && make) + $(MAKE) -C utils 'CC=$(CC)' libcrypto: libtls - (cd crypto && make) + $(MAKE) -C crypto 'CC=$(CC)' libtls: - (cd tls && make) + $(MAKE) -C tls 'CC=$(CC)' libiw: - (cd lwe && make BUILD_STATIC=y libiw.a) + $(MAKE) -C lwe BUILD_STATIC=y 'CC=$(CC)' libiw.a init.o: $(CC) $(CFLAGS) init.c -c