diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-09-09 22:50:06 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-09-09 22:50:06 -0700 |
commit | 77922f115a5dba3c16cce45c95e0fac318a3b8c6 (patch) | |
tree | b29069faf947268a6c056d50a916f31fdb548374 /meta-initramfs/recipes-devtools | |
parent | 2c3aa1e4b6dd129ef428846a0bc36a2ace5942c9 (diff) | |
download | meta-openembedded-77922f115a5dba3c16cce45c95e0fac318a3b8c6.tar.gz |
klcc-cross: Recognise clang options
Let klcc understand '-no-integrated-as' which is a clang option used by
meta-clang for compiler defaults
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools')
-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 \ |