Retrieve an LD_LIBRARY_PATH value suitable for using the native linker to resolve our shared libraries. @return the LD_LIBRARY_PATH in string
()
| 1320 | * @return the LD_LIBRARY_PATH in string |
| 1321 | */ |
| 1322 | public static String makeLdLibraryPath() { |
| 1323 | sSoSourcesLock.readLock().lock(); |
| 1324 | try { |
| 1325 | assertInitialized(); |
| 1326 | ArrayList<String> pathElements = new ArrayList<>(); |
| 1327 | SoSource[] soSources = sSoSources; |
| 1328 | if (soSources != null) { |
| 1329 | for (SoSource soSource : soSources) { |
| 1330 | soSource.addToLdLibraryPath(pathElements); |
| 1331 | } |
| 1332 | } |
| 1333 | String joinedPaths = TextUtils.join(":", pathElements); |
| 1334 | LogUtil.d(TAG, "makeLdLibraryPath final path: " + joinedPaths); |
| 1335 | return joinedPaths; |
| 1336 | } finally { |
| 1337 | sSoSourcesLock.readLock().unlock(); |
| 1338 | } |
| 1339 | } |
| 1340 | |
| 1341 | /** |
| 1342 | * This function ensure that every SoSources Abi is supported for at least one abi in |
nothing calls this directly
no test coverage detected