ports/devel/cmake/patches/patch-Source_cmInstallCommand_cxx

27 lines
1 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: Source/cmInstallCommand.cxx
--- Source/cmInstallCommand.cxx.orig
+++ Source/cmInstallCommand.cxx
2025-01-27 20:22:19 +00:00
@@ -678,6 +678,9 @@ bool HandleTargetsMode(std::vector<std::string> const&
2023-08-16 22:26:55 +00:00
}
// Select the mode for installing symlinks to versioned shared libraries.
+ // Do not install symlinks to versioned shared libraries on OpenBSD.
+ // Use NamelinkModeSkip unconditionally.
+#if !defined(__OpenBSD__)
cmInstallTargetGenerator::NamelinkModeType namelinkMode =
cmInstallTargetGenerator::NamelinkModeNone;
if (libraryArgs.GetNamelinkOnly()) {
2025-01-27 20:22:19 +00:00
@@ -693,6 +696,12 @@ bool HandleTargetsMode(std::vector<std::string> const&
2023-08-16 22:26:55 +00:00
} else if (archiveArgs.GetNamelinkSkip()) {
importlinkMode = cmInstallTargetGenerator::NamelinkModeSkip;
}
+#else
+ cmInstallTargetGenerator::NamelinkModeType namelinkMode =
+ cmInstallTargetGenerator::NamelinkModeSkip;
+ cmInstallTargetGenerator::NamelinkModeType importlinkMode =
+ cmInstallTargetGenerator::NamelinkModeSkip;
+#endif
// Check if there is something to do.
if (targetList.empty()) {