Index: netcat-1.10/Makefile =================================================================== --- netcat-1.10.orig/Makefile 2007-05-14 23:48:50.000000000 +0100 +++ netcat-1.10/Makefile 2007-05-14 23:49:15.000000000 +0100 @@ -14,8 +14,10 @@ XLIBS = # xtra libs if necessary? # -Bstatic for sunos, -static for gcc, etc. You want this, trust me. STATIC = +DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +XCC = $(DEB_HOST_GNU_TYPE)-gcc CC = gcc $(CFLAGS) -LD = $(CC) # linker; defaults to unstripped executables +LD = $(XCC) # linker; defaults to unstripped executables o = o # object extension ALL = nc @@ -28,7 +30,7 @@ ### HARD TARGETS nc: netcat.c - $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS) + $(XCC) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS) nc-dos: @echo "DOS?! Maybe someday, but not now"