forked from OSchip/llvm-project
Don't add -Bsymbolic by default on Android.
-Bsymbolic is not a platform requirement and should not be added unconditionally. llvm-svn: 213126
This commit is contained in:
parent
0c274aed23
commit
a333117852
|
@ -7168,9 +7168,6 @@ void gnutools::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-static");
|
||||
} else if (Args.hasArg(options::OPT_shared)) {
|
||||
CmdArgs.push_back("-shared");
|
||||
if (isAndroid) {
|
||||
CmdArgs.push_back("-Bsymbolic");
|
||||
}
|
||||
}
|
||||
|
||||
if (ToolChain.getArch() == llvm::Triple::arm ||
|
||||
|
|
|
@ -830,7 +830,7 @@
|
|||
// RUN: -shared \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-ANDROID-SO %s
|
||||
// CHECK-ANDROID-SO: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
// CHECK-ANDROID-SO: "-Bsymbolic"
|
||||
// CHECK-ANDROID-SO-NOT: "-Bsymbolic"
|
||||
// CHECK-ANDROID-SO: "{{.*}}{{/|\\\\}}crtbegin_so.o"
|
||||
// CHECK-ANDROID-SO: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-ANDROID-SO-NOT: "gcc_s"
|
||||
|
|
Loading…
Reference in New Issue