blob: 82dfd3e65ad1791d09b2add78af11fa1d0d72c29 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 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---
10 Makefile.ffmpeg | 22 ++++++++++++++--------
11 1 file changed, 14 insertions(+), 8 deletions(-)
12
13Index: git/Makefile.ffmpeg
14===================================================================
15--- git.orig/Makefile.ffmpeg
16+++ git/Makefile.ffmpeg
17@@ -22,12 +22,15 @@ configure:
18 CFLAGS="$(CFLAGS) ${INCLUDES}" \
19 LDFLAGS="" \
20 ./configure \
21+ --ld="${CCLD}" \
22+ --cc="${CC}" \
23+ --cxx="${CXX}" \
24 --extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \
25 --extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \
26 --enable-shared \
27 --disable-static \
28 --arch=arm \
29- --cpu=arm1176jzf-s \
30+ --cpu=$(CPU) \
31 --target-os=linux \
32 --disable-hwaccels \
33 --enable-parsers \
34@@ -42,7 +45,7 @@ configure:
35 --enable-gpl \
36 --enable-version3 \
37 --enable-protocols \
38- --enable-libsmbclient \
39+ --disable-libsmbclient \
40 --enable-libssh \
41 --enable-nonfree \
42 --enable-openssl \