Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame^] | 1 | From 100982ee1fc1cb571c7453d14f9acd60e67d4765 Mon Sep 17 00:00:00 2001 |
| 2 | From: Andrei Gherzan <andrei.gherzan@windriver.com> |
| 3 | Date: Sun, 25 Jan 2015 11:13:51 +0200 |
| 4 | Subject: [PATCH] Add FFMPEG_EXTRA_CFLAGS and FFMPEG_EXTRA_LDFLAGS |
| 5 | |
| 6 | In this way we can inject flags to LD and CC using |
| 7 | --extra-cflags and --extra-ldflags. |
| 8 | |
| 9 | Upstream-Status: Inappropriate [embedded specific] |
| 10 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> |
| 11 | --- |
| 12 | Makefile.ffmpeg | 3 ++- |
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg |
| 16 | index abe4b26..c9d42d7 100644 |
| 17 | --- a/Makefile.ffmpeg |
| 18 | +++ b/Makefile.ffmpeg |
| 19 | @@ -22,7 +22,8 @@ configure: |
| 20 | CFLAGS="$(CFLAGS) ${INCLUDES}" \ |
| 21 | LDFLAGS="" \ |
| 22 | ./configure \ |
| 23 | - --extra-cflags="-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog" \ |
| 24 | + --extra-cflags="-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog $(FFMPEG_EXTRA_CFLAGS)" \ |
| 25 | + --extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \ |
| 26 | --enable-cross-compile \ |
| 27 | --enable-shared \ |
| 28 | --disable-static \ |
| 29 | -- |
| 30 | 2.1.0 |
| 31 | |