--- rtmpdump-2.4.orig/Makefile	2013-12-15 14:24:48.000000000 +0100
+++ rtmpdump-2.4/Makefile	2013-12-15 15:18:27.000000000 +0100
@@ -1,9 +1,9 @@
 VERSION=v2.4
 
-prefix=/usr/local
+prefix=/usr
 
-CC=$(CROSS_COMPILE)gcc
-LD=$(CROSS_COMPILE)ld
+CC?=$(CROSS)gcc
+LD?=$(CROSS)ld
 
 SYS=posix
 #SYS=mingw
@@ -21,8 +21,10 @@ CRYPTO_DEF=$(DEF_$(CRYPTO))
 
 DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
 OPT=-O2
-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
-LDFLAGS=-Wall $(XLDFLAGS)
+CFLAGS?=
+CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF)
+LDFLAGS?=
+LDFLAGS+=-Wall $(XLDFLAGS)
 
 bindir=$(prefix)/bin
 sbindir=$(prefix)/sbin
