summaryrefslogtreecommitdiffstats
path: root/meta-raspberrypi/recipes-multimedia/omxplayer/omxplayer/0001-Specify-cc-cxx-and-ld-variables-from-environment.patch
blob: 82dfd3e65ad1791d09b2add78af11fa1d0d72c29 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 9b4b7f8726171e97f12c587d50e54bab0dc42da5 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 12 Sep 2018 22:18:07 -0700
Subject: [PATCH] Specify --cc, --cxx and --ld variables from environment

This helps in compiling with non-gcc compilers

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 Makefile.ffmpeg | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Index: git/Makefile.ffmpeg
===================================================================
--- git.orig/Makefile.ffmpeg
+++ git/Makefile.ffmpeg
@@ -22,12 +22,15 @@ configure:
 	CFLAGS="$(CFLAGS) ${INCLUDES}" \
 	LDFLAGS="" \
   ./configure \
+			--ld="${CCLD}" \
+			--cc="${CC}" \
+			--cxx="${CXX}" \
 			--extra-cflags="$(FFMPEG_EXTRA_CFLAGS)" \
 			--extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \
 			--enable-shared \
 			--disable-static \
 			--arch=arm \
-			--cpu=arm1176jzf-s \
+			--cpu=$(CPU) \
 			--target-os=linux \
 			--disable-hwaccels \
 			--enable-parsers \
@@ -42,7 +45,7 @@ configure:
 			--enable-gpl \
 			--enable-version3 \
 			--enable-protocols \
-			--enable-libsmbclient \
+			--disable-libsmbclient \
 			--enable-libssh \
 			--enable-nonfree \
 			--enable-openssl \
OpenPOWER on IntegriCloud