@@ -5,7 +5,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- 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 <raj.khem@gmail.com>
+ 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";
This is added when usrmerge is enabled in distro Signed-off-by: Khem Raj <raj.khem@gmail.com> --- .../klibc/files/klcc-cross-accept-clang-options.patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)