diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-24 10:19:37 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-25 10:44:14 -0700 |
commit | 6a52b84dbc41c8c831e5ce82b21900210ef1a8c4 (patch) | |
tree | bd7b067edde9be5fcdfeefe130e6fc55dc17bc2a | |
parent | 1f56482ecf8cd90e795215253700ae99ffa5a22d (diff) | |
download | meta-openembedded-6a52b84dbc41c8c831e5ce82b21900210ef1a8c4.tar.gz |
klibc: Recognise --dyld-prefix clang option
This is added when usrmerge is enabled in distro
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch b/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch index 431c75e3af..a3a0695637 100644 --- a/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch +++ b/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch | |||
@@ -5,7 +5,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
5 | 5 | ||
6 | --- a/klcc/klcc.in | 6 | --- a/klcc/klcc.in |
7 | +++ b/klcc/klcc.in | 7 | +++ b/klcc/klcc.in |
8 | @@ -207,6 +207,27 @@ while ( defined($a = shift(@ARGV)) ) { | 8 | @@ -207,6 +207,30 @@ while ( defined($a = shift(@ARGV)) ) { |
9 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { | 9 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { |
10 | # Override gcc encoded sysroot | 10 | # Override gcc encoded sysroot |
11 | push(@ccopt, $a); | 11 | push(@ccopt, $a); |
@@ -30,6 +30,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
30 | + } elsif ( $a =~ '-rtlib=.*' ) { | 30 | + } elsif ( $a =~ '-rtlib=.*' ) { |
31 | + # Allow clang options | 31 | + # Allow clang options |
32 | + push(@ccopt, $a); | 32 | + push(@ccopt, $a); |
33 | + } elsif ( $a =~ '--dyld-prefix=.*' ) { | ||
34 | + # Allow clang options | ||
35 | + push(@ccopt, $a); | ||
33 | } else { | 36 | } else { |
34 | die "$0: unknown option: $a\n"; | 37 | die "$0: unknown option: $a\n"; |
35 | } | 38 | } |