From 6a52b84dbc41c8c831e5ce82b21900210ef1a8c4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 24 Apr 2022 10:19:37 -0700 Subject: klibc: Recognise --dyld-prefix clang option This is added when usrmerge is enabled in distro Signed-off-by: Khem Raj --- .../klibc/files/klcc-cross-accept-clang-options.patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta-initramfs') 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 431c75e3af..a3a0695637 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 --- a/klcc/klcc.in +++ b/klcc/klcc.in -@@ -207,6 +207,27 @@ while ( defined($a = shift(@ARGV)) ) { +@@ -207,6 +207,30 @@ while ( defined($a = shift(@ARGV)) ) { } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { # Override gcc encoded sysroot push(@ccopt, $a); @@ -29,6 +29,9 @@ Signed-off-by: Khem Raj + push(@ccopt, $a); + } elsif ( $a =~ '-rtlib=.*' ) { + # Allow clang options ++ push(@ccopt, $a); ++ } elsif ( $a =~ '--dyld-prefix=.*' ) { ++ # Allow clang options + push(@ccopt, $a); } else { die "$0: unknown option: $a\n"; -- cgit v1.2.3-54-g00ecf