1From 9b4b7f8726171e97f12c587d50e54bab0dc42da5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Sep 2018 22:18:07 -0700
4Subject: [PATCH] Specify --cc, --cxx and --ld variables from environment
5
6This helps in compiling with non-gcc compilers
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10Upstream-Status: Pending
11
12 Makefile.ffmpeg | 22 ++++++++++++++--------
13 1 file changed, 14 insertions(+), 8 deletions(-)
14
15Index: git/Makefile.ffmpeg
16===================================================================
17--- git.orig/Makefile.ffmpeg
18+++ git/Makefile.ffmpeg
19@@ -22,12 +22,15 @@ configure:
20 	CFLAGS="$(CFLAGS) ${INCLUDES}" \
21 	LDFLAGS="" \
22   ./configure \
23+			--ld="${CCLD}" \
24+			--cc="${CC}" \
25+			--cxx="${CXX}" \
26 			--extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \
27 			--extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \
28 			--enable-shared \
29 			--disable-static \
30 			--arch=arm \
31-			--cpu=arm1176jzf-s \
32+			--cpu=$(CPU) \
33 			--target-os=linux \
34 			--disable-hwaccels \
35 			--enable-parsers \
36@@ -42,7 +45,7 @@ configure:
37 			--enable-gpl \
38 			--enable-version3 \
39 			--enable-protocols \
40-			--enable-libsmbclient \
41+			--disable-libsmbclient \
42 			--enable-libssh \
43 			--enable-nonfree \
44 			--enable-openssl \
45