Remove shared lib name checks
Now that we're no longer using -l, we don't need to strip off the "lib"
prefix and ".so" suffix. Therefore we don't need to make sure the prefix
and suffix exists.
Bug: 31742855
Test: Attempt to link android.hardware.* (hardware/interfaces/*)
Change-Id: I38555014cdc0e430f94359e173bb09e35d45c44e
diff --git a/cc/builder.go b/cc/builder.go
index a84ba08..42a7f48 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -377,13 +377,6 @@
}
for _, lib := range sharedLibs {
- file := filepath.Base(lib.String())
- if !strings.HasPrefix(file, "lib") {
- panic("shared library " + lib.String() + " does not start with lib")
- }
- if !strings.HasSuffix(file, flags.toolchain.ShlibSuffix()) {
- panic("shared library " + lib.String() + " does not end with " + flags.toolchain.ShlibSuffix())
- }
libFlagsList = append(libFlagsList, lib.String())
}