summaryrefslogtreecommitdiff
path: root/package/rtmpdump/patches/patch-Makefile
blob: 64f950750e1d407e77f44a13f9734ac51ee253a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- 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