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