binutils: update to 2.43.1
[openadk.git] / package / rtmpdump / patches / patch-librtmp_Makefile
blob542622ac11f9bc34f236e808658cc80a7537ae21
1 --- rtmpdump-2.4.orig/librtmp/Makefile  2013-12-15 14:24:48.000000000 +0100
2 +++ rtmpdump-2.4/librtmp/Makefile       2014-12-19 20:44:42.000000000 +0100
3 @@ -1,6 +1,6 @@
4  VERSION=v2.4
5  
6 -prefix=/usr/local
7 +prefix=/usr
8  
9  incdir=$(prefix)/include/librtmp
10  bindir=$(prefix)/bin
11 @@ -11,12 +11,12 @@ INCDIR=$(DESTDIR)$(incdir)
12  LIBDIR=$(DESTDIR)$(libdir)
13  MANDIR=$(DESTDIR)$(mandir)
15 -CC=$(CROSS_COMPILE)gcc
16 -LD=$(CROSS_COMPILE)ld
17 -AR=$(CROSS_COMPILE)ar
18 +CC?=$(CROSS_COMPILE)gcc
19 +LD?=$(CROSS_COMPILE)ld
20 +AR?=$(CROSS_COMPILE)ar
22  SYS=posix
23 -CRYPTO=OPENSSL
24 +#CRYPTO=OPENSSL
25  #CRYPTO=GNUTLS
26  DEF_POLARSSL=-DUSE_POLARSSL
27  DEF_OPENSSL=-DUSE_OPENSSL
28 @@ -74,8 +74,10 @@ SO_INST=$(SOINST_$(SHARED))
30  DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
31  OPT=-O2
32 -CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
33 -LDFLAGS=$(XLDFLAGS)
34 +CFLAGS?=
35 +CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF) $(SO_DEF)
36 +LDFLAGS?=
37 +LDFLAGS+=$(XLDFLAGS)
40  OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o