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 | 33 |
1 files changed, 0 insertions, 33 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 deleted file mode 100644 index c52083327c..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | ltmain.in: Parse additional clang options | ||
2 | |||
3 | clang uses -rtlib and --unwindlib to select proper compiler | ||
4 | runtime in some cases. Therefore pass these options to linker when found in | ||
5 | ldflags | ||
6 | |||
7 | * build-aux/ltmain.in: Handle clang linker options | ||
8 | |||
9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
10 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=725646bf095bf5c07c49ae38dd060f95bd95ae3c] | ||
11 | |||
12 | --- | ||
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 () | ||
21 | # -fsanitize=* Clang/GCC memory and address sanitizer | ||
22 | # -fuse-ld=* Linker select flags for GCC | ||
23 | # -f{file|debug|macro|profile}-prefix-map* needed for lto linking | ||
24 | + # -rtlib=* select c runtime lib with clang | ||
25 | + # --unwindlib=* select unwinder library with clang | ||
26 | # -Wa,* Pass flags directly to the assembler | ||
27 | -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=*| \ | ||
29 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | ||
30 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-rtlib=*|--unwindlib=*| \ | ||
31 | -specs=*|-fsanitize=*|-fuse-ld=*|-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|-Wa,*) | ||
32 | func_quote_arg pretty "$arg" | ||
33 | arg=$func_quote_arg_result | ||