1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| meta-clang passes this option to compiler defaults
|
| Upstream-Status: Pending
| 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)) ) {
| } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
| # Override gcc encoded sysroot
| push(@ccopt, $a);
| + } elsif ( $a eq '-nostartfiles' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| + } elsif ( $a eq '-nostdlib' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| + } elsif ( $a eq '-nodefaultlibs' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| + } elsif ( $a eq '-no-pie' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| + } elsif ( $a eq '-no-integrated-as' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| + } elsif ( $a =~ '--unwindlib=.*' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| + } elsif ( $a =~ '-rtlib=.*' ) {
| + # Allow clang options
| + push(@ccopt, $a);
| } else {
| die "$0: unknown option: $a\n";
| }
|
|