diff options
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch | 19 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch new file mode 100644 index 000000000..07703aa53 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/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 | } | ||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 8616f89f2..f0b20bc7f 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -12,6 +12,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ | |||
12 | file://klibc-linux-libc-dev.patch \ | 12 | file://klibc-linux-libc-dev.patch \ |
13 | file://staging.patch \ | 13 | file://staging.patch \ |
14 | file://klcc-consider-sysroot.patch \ | 14 | file://klcc-consider-sysroot.patch \ |
15 | file://klcc-cross-accept-clang-options.patch \ | ||
15 | file://0001-dash-Specify-format-string-in-fmtstr.patch \ | 16 | file://0001-dash-Specify-format-string-in-fmtstr.patch \ |
16 | file://0001-Define-in_-structs-for-non-glibc-system-libs.patch \ | 17 | file://0001-Define-in_-structs-for-non-glibc-system-libs.patch \ |
17 | file://0001-include-linux-sysinfo.h-directly.patch \ | 18 | file://0001-include-linux-sysinfo.h-directly.patch \ |