1meta-clang passes this option to compiler defaults
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6--- a/klcc/klcc.in
7+++ b/klcc/klcc.in
8@@ -207,6 +207,30 @@ while ( defined($a = shift(@ARGV)) ) {
9     } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
10 	# Override gcc encoded sysroot
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);
24+    } elsif ( $a eq '-no-integrated-as' ) {
25+	# Allow clang options
26+	push(@ccopt, $a);
27+    } elsif ( $a =~ '--unwindlib=.*' ) {
28+	# Allow clang options
29+	push(@ccopt, $a);
30+    } elsif ( $a =~ '-rtlib=.*' ) {
31+	# Allow clang options
32+	push(@ccopt, $a);
33+    } elsif ( $a =~ '--dyld-prefix=.*' ) {
34+	# Allow clang options
35+	push(@ccopt, $a);
36     } else {
37 	die "$0: unknown option: $a\n";
38     }
39