diff options
| -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 56905a5159..431c75e3af 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,24 @@ while ( defined($a = shift(@ARGV)) ) { | 8 | @@ -207,6 +207,27 @@ 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); |
| @@ -27,6 +27,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 27 | + } elsif ( $a =~ '--unwindlib=.*' ) { | 27 | + } elsif ( $a =~ '--unwindlib=.*' ) { |
| 28 | + # Allow clang options | 28 | + # Allow clang options |
| 29 | + push(@ccopt, $a); | 29 | + push(@ccopt, $a); |
| 30 | + } elsif ( $a =~ '-rtlib=.*' ) { | ||
| 31 | + # Allow clang options | ||
| 32 | + push(@ccopt, $a); | ||
| 30 | } else { | 33 | } else { |
| 31 | die "$0: unknown option: $a\n"; | 34 | die "$0: unknown option: $a\n"; |
| 32 | } | 35 | } |
