summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch b/meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch
new file mode 100644
index 0000000000..5f47d3f20a
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch
@@ -0,0 +1,22 @@
1From 0cb26cf2d25d36c1fdcc4f1635e4329436ed866a Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Fri, 19 Sep 2014 23:09:29 +0200
4
5---
6 klcc/klcc.in | 3 +++
7 1 file changed, 3 insertions(+)
8
9diff --git a/klcc/klcc.in b/klcc/klcc.in
10index 43d0984..61e9385 100644
11--- a/klcc/klcc.in
12+++ b/klcc/klcc.in
13@@ -204,6 +204,9 @@ while ( defined($a = shift(@ARGV)) ) {
14 # Libraries
15 push(@libs, $a);
16 push(@libs, shift(@ARGV)) if ( $2 eq '' );
17+ } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
18+ # Override gcc encoded sysroot
19+ push(@ccopt, $a);
20 } else {
21 die "$0: unknown option: $a\n";
22 }