diff options
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch index d59b5a834e..0285c143d2 100644 --- a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch +++ b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch | |||
@@ -1,6 +1,4 @@ | |||
1 | From c3b90d6107a1b638477d5f4dcee48af289647af7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | 1 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 9 Mar 2022 12:52:51 -0800 | ||
4 | Subject: [PATCH] ltmain.in: Parse additional clang options | 2 | Subject: [PATCH] ltmain.in: Parse additional clang options |
5 | 3 | ||
6 | clang uses -rtlib and --unwindlib to select proper compiler runtime in | 4 | clang uses -rtlib and --unwindlib to select proper compiler runtime in |
@@ -9,29 +7,22 @@ ldflags | |||
9 | 7 | ||
10 | Upstream-Status: Pending | 8 | Upstream-Status: Pending |
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | --- | ||
13 | build-aux/ltmain.in | 5 ++++- | ||
14 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
15 | 10 | ||
16 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 11 | Index: libtool-2.4.7/build-aux/ltmain.in |
17 | index 6a7bb72..c355c0c 100644 | 12 | =================================================================== |
18 | --- a/build-aux/ltmain.in | 13 | --- libtool-2.4.7.orig/build-aux/ltmain.in |
19 | +++ b/build-aux/ltmain.in | 14 | +++ libtool-2.4.7/build-aux/ltmain.in |
20 | @@ -5423,10 +5423,13 @@ func_mode_link () | 15 | @@ -5420,10 +5420,12 @@ func_mode_link () |
21 | # --sysroot=* for sysroot support | 16 | # -fsanitize=* Clang/GCC memory and address sanitizer |
22 | # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization | 17 | # -fuse-ld=* Linker select flags for GCC |
23 | # -stdlib=* select c++ std lib with clang | 18 | # -f*-prefix-map* needed for lto linking |
24 | + # -rtlib=* select c runtime lib with clang | 19 | + # -rtlib=* select c runtime lib with clang |
25 | + # --unwindlib=* select unwinder library with clang | 20 | + # --unwindlib=* select unwinder library with clang |
26 | # -f*-prefix-map* needed for lto linking | 21 | # -Wa,* Pass flags directly to the assembler |
27 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | 22 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ |
28 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | 23 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ |
29 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-f*-prefix-map*) | 24 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ |
30 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | 25 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-rtlib=*|--unwindlib=*| \ |
31 | + -rtlib=*|--unwindlib=*|-f*-prefix-map*) | 26 | -specs=*|-fsanitize=*|-fuse-ld=*|-f*-prefix-map*|-Wa,*) |
32 | func_quote_for_eval "$arg" | 27 | func_quote_arg pretty "$arg" |
33 | arg=$func_quote_for_eval_result | 28 | arg=$func_quote_arg_result |
34 | func_append compile_command " $arg" | ||
35 | -- | ||
36 | 2.35.1 | ||
37 | |||