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 | 31 |
1 files changed, 18 insertions, 13 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 0285c143d2..0dcf963dcc 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,21 +1,26 @@ | |||
1 | From: Khem Raj <raj.khem@gmail.com> | 1 | ltmain.in: Parse additional clang options |
2 | Subject: [PATCH] ltmain.in: Parse additional clang options | ||
3 | 2 | ||
4 | clang uses -rtlib and --unwindlib to select proper compiler runtime in | 3 | clang uses -rtlib and --unwindlib to select proper compiler |
5 | some cases. There fore pass these options to linker when found in | 4 | runtime in some cases. Therefore pass these options to linker when found in |
6 | ldflags | 5 | ldflags |
7 | 6 | ||
8 | Upstream-Status: Pending | 7 | * build-aux/ltmain.in: Handle clang linker options |
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | 8 | ||
11 | Index: libtool-2.4.7/build-aux/ltmain.in | 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
12 | =================================================================== | 10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00110.html] |
13 | --- libtool-2.4.7.orig/build-aux/ltmain.in | 11 | |
14 | +++ libtool-2.4.7/build-aux/ltmain.in | 12 | --- |
15 | @@ -5420,10 +5420,12 @@ func_mode_link () | 13 | build-aux/ltmain.in | 4 +++- |
14 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
17 | index 037f009..ba5c816 100644 | ||
18 | --- a/build-aux/ltmain.in | ||
19 | +++ b/build-aux/ltmain.in | ||
20 | @@ -5414,10 +5414,12 @@ func_mode_link () | ||
16 | # -fsanitize=* Clang/GCC memory and address sanitizer | 21 | # -fsanitize=* Clang/GCC memory and address sanitizer |
17 | # -fuse-ld=* Linker select flags for GCC | 22 | # -fuse-ld=* Linker select flags for GCC |
18 | # -f*-prefix-map* needed for lto linking | 23 | # -f{file|debug|macro|profile}-prefix-map* needed for lto linking |
19 | + # -rtlib=* select c runtime lib with clang | 24 | + # -rtlib=* select c runtime lib with clang |
20 | + # --unwindlib=* select unwinder library with clang | 25 | + # --unwindlib=* select unwinder library with clang |
21 | # -Wa,* Pass flags directly to the assembler | 26 | # -Wa,* Pass flags directly to the assembler |
@@ -23,6 +28,6 @@ Index: libtool-2.4.7/build-aux/ltmain.in | |||
23 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | 28 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ |
24 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | 29 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ |
25 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-rtlib=*|--unwindlib=*| \ | 30 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-rtlib=*|--unwindlib=*| \ |
26 | -specs=*|-fsanitize=*|-fuse-ld=*|-f*-prefix-map*|-Wa,*) | 31 | -specs=*|-fsanitize=*|-fuse-ld=*|-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|-Wa,*) |
27 | func_quote_arg pretty "$arg" | 32 | func_quote_arg pretty "$arg" |
28 | arg=$func_quote_arg_result | 33 | arg=$func_quote_arg_result |