summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-06-10 19:39:39 -0700
committerKhem Raj <raj.khem@gmail.com>2021-06-10 19:43:02 -0700
commitaac5dfe6ddee33dbaef848160cef58a07f36ae86 (patch)
tree8ea587f5c088aecd92b1953df28912b5747d50c7 /meta-initramfs/recipes-devtools
parent4531446e5e1bb2cc92d4a4aeb2dcd0169761fdb7 (diff)
downloadmeta-openembedded-aac5dfe6ddee33dbaef848160cef58a07f36ae86.tar.gz
klibc: Add clang's -rtlib to known options
This helps in ensuring that we always link klibc apps with libgcc as compiler-rt does not work for klibc due to missing libssp functions e.g. __stack_chk_guard and __stack_chk_guard which it expects in libc 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/files/klcc-cross-accept-clang-options.patch5
1 files changed, 4 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 56905a515..431c75e3a 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,7 +5,7 @@ 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,24 @@ while ( defined($a = shift(@ARGV)) ) { 8@@ -207,6 +207,27 @@ 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);
@@ -27,6 +27,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
27+ } elsif ( $a =~ '--unwindlib=.*' ) { 27+ } elsif ( $a =~ '--unwindlib=.*' ) {
28+ # Allow clang options 28+ # Allow clang options
29+ push(@ccopt, $a); 29+ push(@ccopt, $a);
30+ } elsif ( $a =~ '-rtlib=.*' ) {
31+ # Allow clang options
32+ push(@ccopt, $a);
30 } else { 33 } else {
31 die "$0: unknown option: $a\n"; 34 die "$0: unknown option: $a\n";
32 } 35 }