mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
16dd9dfe3f
Adjust klcc to work with clang Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
33 lines
939 B
Diff
33 lines
939 B
Diff
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,24 @@ 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);
|
|
} else {
|
|
die "$0: unknown option: $a\n";
|
|
}
|