diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-04 23:43:00 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-02-04 23:46:45 -0800 |
commit | 16dd9dfe3ff1220642f91e19f8cc0f4815d035a1 (patch) | |
tree | f1afd589bbfc7e1717fa9cd5a0f235a296a8b161 /meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch | |
parent | ac8a6e43b949086018179cce2d91ea637faf0869 (diff) | |
download | meta-openembedded-16dd9dfe3ff1220642f91e19f8cc0f4815d035a1.tar.gz |
klibc: Upgrade to 2.0.8 release
Adjust klcc to work with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
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 | 14 |
1 files changed, 13 insertions, 1 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 3b7031e98..56905a515 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 | |||
@@ -5,10 +5,22 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
5 | 5 | ||
6 | --- a/klcc/klcc.in | 6 | --- a/klcc/klcc.in |
7 | +++ b/klcc/klcc.in | 7 | +++ b/klcc/klcc.in |
8 | @@ -207,6 +207,12 @@ while ( defined($a = shift(@ARGV)) ) { | 8 | @@ -207,6 +207,24 @@ while ( defined($a = shift(@ARGV)) ) { |
9 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { | 9 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { |
10 | # Override gcc encoded sysroot | 10 | # Override gcc encoded sysroot |
11 | push(@ccopt, $a); | 11 | push(@ccopt, $a); |
12 | + } elsif ( $a eq '-nostartfiles' ) { | ||
13 | + # Allow clang options | ||
14 | + push(@ccopt, $a); | ||
15 | + } elsif ( $a eq '-nostdlib' ) { | ||
16 | + # Allow clang options | ||
17 | + push(@ccopt, $a); | ||
18 | + } elsif ( $a eq '-nodefaultlibs' ) { | ||
19 | + # Allow clang options | ||
20 | + push(@ccopt, $a); | ||
21 | + } elsif ( $a eq '-no-pie' ) { | ||
22 | + # Allow clang options | ||
23 | + push(@ccopt, $a); | ||
12 | + } elsif ( $a eq '-no-integrated-as' ) { | 24 | + } elsif ( $a eq '-no-integrated-as' ) { |
13 | + # Allow clang options | 25 | + # Allow clang options |
14 | + push(@ccopt, $a); | 26 | + push(@ccopt, $a); |