diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-05-16 10:33:54 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2023-05-28 16:17:05 -0400 |
commit | 35d3bbf587292d48f58ed6070b950016360ec050 (patch) | |
tree | 8fc7707a721d653a9d8697691ff95662a7155fb2 | |
parent | af36e64fa86f608aa47e49adb1f08b7b29c515cf (diff) | |
download | meta-openembedded-35d3bbf587292d48f58ed6070b950016360ec050.tar.gz |
libmad: Add a patch to pass cflags to build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0474e0b8705ee2048e92ed5874b83b2535dc9cd2)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-multimedia/libmad/libmad/0001-configure-Respect-the-cflags-from-environment.patch | 47 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/libmad/libmad_0.15.1b.bb | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/libmad/libmad/0001-configure-Respect-the-cflags-from-environment.patch b/meta-oe/recipes-multimedia/libmad/libmad/0001-configure-Respect-the-cflags-from-environment.patch new file mode 100644 index 0000000000..586782a348 --- /dev/null +++ b/meta-oe/recipes-multimedia/libmad/libmad/0001-configure-Respect-the-cflags-from-environment.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 26342d1c775205f661f5cf005b7e054a04f5d32e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 16 May 2023 10:14:57 -0700 | ||
4 | Subject: [PATCH] configure: Respect the cflags from environment | ||
5 | |||
6 | This is needed with OE like cross-build envs where certain important | ||
7 | flags maybe passed as global policy to aid cross compiling or | ||
8 | reproducibility etc. | ||
9 | |||
10 | Upstream-Status: Inappropriate [OE-Specific] | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | configure.ac | 5 +---- | ||
15 | 1 file changed, 1 insertion(+), 4 deletions(-) | ||
16 | |||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -73,12 +73,9 @@ debug="" | ||
20 | optimize="" | ||
21 | profile="" | ||
22 | |||
23 | -set -- $CFLAGS | ||
24 | -CFLAGS="" | ||
25 | - | ||
26 | if test "$GCC" = yes | ||
27 | then | ||
28 | - CFLAGS="-Wall" | ||
29 | + CFLAGS="$CFLAGS -Wall" | ||
30 | fi | ||
31 | |||
32 | while test $# -gt 0 | ||
33 | @@ -115,10 +112,13 @@ do | ||
34 | optimize="$optimize $1" | ||
35 | shift | ||
36 | ;; | ||
37 | - *) | ||
38 | + -*) | ||
39 | CFLAGS="$CFLAGS $1" | ||
40 | shift | ||
41 | ;; | ||
42 | + *) | ||
43 | + shift | ||
44 | + ;; | ||
45 | esac | ||
46 | done | ||
47 | |||
diff --git a/meta-oe/recipes-multimedia/libmad/libmad_0.15.1b.bb b/meta-oe/recipes-multimedia/libmad/libmad_0.15.1b.bb index d3ac85ee0b..5b089a0b33 100644 --- a/meta-oe/recipes-multimedia/libmad/libmad_0.15.1b.bb +++ b/meta-oe/recipes-multimedia/libmad/libmad_0.15.1b.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libmad-${PV}.tar.gz \ | |||
16 | file://fix_for_mips_with_gcc-4.5.0.patch \ | 16 | file://fix_for_mips_with_gcc-4.5.0.patch \ |
17 | file://obsolete_automake_macros.patch \ | 17 | file://obsolete_automake_macros.patch \ |
18 | file://automake-foreign.patch \ | 18 | file://automake-foreign.patch \ |
19 | file://0001-configure-Respect-the-cflags-from-environment.patch \ | ||
19 | " | 20 | " |
20 | SRC_URI:append:toolchain-clang = " file://0004-Remove-clang-unsupported-compiler-flags.patch " | 21 | SRC_URI:append:toolchain-clang = " file://0004-Remove-clang-unsupported-compiler-flags.patch " |
21 | 22 | ||