Merge "Stop linking libdl.a into static bins"

This commit is contained in:
Ryan Prichard
2019-10-28 20:14:37 +00:00
committed by Gerrit Code Review
4 changed files with 6 additions and 4 deletions

View File

@@ -2309,7 +2309,7 @@ func TestStaticExecutable(t *testing.T) {
variant := "android_arm64_armv8-a_core"
binModuleRule := ctx.ModuleForTests("static_test", variant).Rule("ld")
libFlags := binModuleRule.Args["libFlags"]
systemStaticLibs := []string{"libc.a", "libm.a", "libdl.a"}
systemStaticLibs := []string{"libc.a", "libm.a"}
for _, lib := range systemStaticLibs {
if !strings.Contains(libFlags, lib) {
t.Errorf("Static lib %q was not found in %q", lib, libFlags)