diff options
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch | 11 |
1 files changed, 6 insertions, 5 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 07703aa536..3b7031e981 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 | |||
| @@ -3,17 +3,18 @@ meta-clang passes this option to compiler defaults | |||
| 3 | Upstream-Status: Pending | 3 | Upstream-Status: Pending |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 5 | 5 | ||
| 6 | Index: git/klcc/klcc.in | 6 | --- a/klcc/klcc.in |
| 7 | =================================================================== | 7 | +++ b/klcc/klcc.in |
| 8 | --- git.orig/klcc/klcc.in | 8 | @@ -207,6 +207,12 @@ while ( defined($a = shift(@ARGV)) ) { |
| 9 | +++ git/klcc/klcc.in | ||
| 10 | @@ -207,6 +207,9 @@ while ( defined($a = shift(@ARGV)) ) { | ||
| 11 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { | 9 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { |
| 12 | # Override gcc encoded sysroot | 10 | # Override gcc encoded sysroot |
| 13 | push(@ccopt, $a); | 11 | push(@ccopt, $a); |
| 14 | + } elsif ( $a eq '-no-integrated-as' ) { | 12 | + } elsif ( $a eq '-no-integrated-as' ) { |
| 15 | + # Allow clang options | 13 | + # Allow clang options |
| 16 | + push(@ccopt, $a); | 14 | + push(@ccopt, $a); |
| 15 | + } elsif ( $a =~ '--unwindlib=.*' ) { | ||
| 16 | + # Allow clang options | ||
| 17 | + push(@ccopt, $a); | ||
| 17 | } else { | 18 | } else { |
| 18 | die "$0: unknown option: $a\n"; | 19 | die "$0: unknown option: $a\n"; |
| 19 | } | 20 | } |
