rtmpdump: fix build with selected crypto
PATCH 1/1 rtmpdump: fix build with selected crypto
After the patch 42ed108013082c6836673aabe8d6258f9e7a490f, the defaut crypto engine became GNUTLS, this made the build failed as the CFLAGS variable where not correctly passed to the Makefile.
Signed-off-by Maxime Hadjinlian <[email protected]>
Cc "Yann E. MORIN" <[email protected]>
--- ...p-0001-Fix-override-of-CFLAGS-and-LDFLAGS.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 package/rtmpdump/rtmpdump-0001-Fix-override-of-CFLAGS-and-LDFLAGS.patch
package/rtmpdump/rtmpdump-0001-Fix-override-of-CFLAGS-and-LDFLAGS.patch new file +43 -0
@@ -0,0 +1,43 @@ +From 3c44f11aefe70f4ed1660a614441bbdd5220e332 Mon Sep 17 00:00:00 2001 +From: Maxime Hadjinlian <[email protected]> +Date: Sat, 25 Jan 2014 16:14:35 +0100 +Subject: [PATCH] Fix override of CFLAGS and LDFLAGS + +Signed-off-by: Maxime Hadjinlian <[email protected]> +--- + Makefile | 4 ++-- + librtmp/Makefile | 3 +-- + 2 files changed, 3 insertions(+), 4 deletions(-) + +diff --git a/Makefile b/Makefile +index a1595a8..3c1eaba 100644 +--- a/Makefile ++++ b/Makefile +@@ -21,8 +21,8 @@ CRYPTO_DEF=$(DEF_$(CRYPTO)) + + DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF) + OPT=-O2 +-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) +-LDFLAGS=-Wall $(XLDFLAGS) ++override CFLAGS +=-Wall $(INC) $(DEF) $(OPT) ++override LDFLAGS +=-Wall + + bindir=$(prefix)/bin + sbindir=$(prefix)/sbin +diff --git a/librtmp/Makefile b/librtmp/Makefile +index 74ee3b5..a1f2bbc 100644 +--- a/librtmp/Makefile ++++ b/librtmp/Makefile +@@ -72,8 +72,7 @@ SO_INST=$(SOINST_$(SHARED)) + + DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF) + OPT=-O2 +-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF) +-LDFLAGS=$(XLDFLAGS) ++override CFLAGS +=-Wall $(INC) $(DEF) $(OPT) $(SO_DEF) + + + OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o +-- +1.8.5.2 +
Signature · 1 line
1.8.5.2
PATCH 1/1 rtmpdump: fix build with selected crypto
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Maxime" == Maxime Hadjinlian <[email protected]> writes:
After the patch
42ed108013082c6836673aabe8d6258f9e7a490f, the defaut crypto engine became GNUTLS, this made the build failed as the CFLAGS variable where not correctly passed to theMakefile.
Thanks, but I took a closer look at the makefile and rewrote rtmpdump.mk to use XCFLAGS / XLDFLAGS instead.
Signature · 1 line
Bye, Peter Korsgaard