opnsense-ports/devel/cmake-core/files/patch-Source_cmBinUtilsLinuxELFLinker.cxx
Franco Fichtner bb7ce4e6f7 devel/cmake-core: sync with upstream
Taken from: FreeBSD
2023-11-10 09:14:15 +01:00

20 lines
728 B
C++

FreeBSD's ldconfig(8) is largely incompatible with that from glibc. Ignore
these extra paths and just rely on those provided by objdump(1).
--- Source/cmBinUtilsLinuxELFLinker.cxx.orig 2023-10-07 19:03:44 UTC
+++ Source/cmBinUtilsLinuxELFLinker.cxx
@@ -132,12 +132,14 @@ bool cmBinUtilsLinuxELFLinker::ScanDependencies(
parentRpaths.end());
}
+#if defined(__linux__)
std::vector<std::string> ldConfigPaths;
if (!this->LDConfigTool->GetLDConfigPaths(ldConfigPaths)) {
return false;
}
searchPaths.insert(searchPaths.end(), ldConfigPaths.begin(),
ldConfigPaths.end());
+#endif
for (auto const& dep : needed) {
if (!this->Archive->IsPreExcluded(dep)) {