summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
diff options
context:
space:
mode:
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.patch14
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);