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/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch | |
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/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch | 19 |
1 files changed, 19 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 | } | ||