openbsd-ports/devel/cmake/patches/patch-Source_cmInstallCommand_cxx
dcoppa 90d59a716c We overwrite library version numbers using our LIBxxx_VERSION
environment variable, but we want to do it for shared libraries
only. Otherwise a static library gets created as
libfoo.a.${LIBfoo_VERSION}, which is wrong.
Bug reported and patch tested by Alexandr Shadchin <alexandr DOT
shadchin AT gmail DOT com>: thanks!

While here, reword/clarify some comments to better explain what my
patches do.
2010-07-28 20:34:22 +00:00

25 lines
971 B
Plaintext

$OpenBSD: patch-Source_cmInstallCommand_cxx,v 1.2 2010/07/28 20:34:22 dcoppa Exp $
--- Source/cmInstallCommand.cxx.orig Mon Jun 28 17:15:59 2010
+++ Source/cmInstallCommand.cxx Wed Jul 28 21:12:05 2010
@@ -324,6 +324,9 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<s
// Select the mode for installing symlinks to versioned shared libraries.
cmInstallTargetGenerator::NamelinkModeType
+ // Do not install symlinks to versioned shared libraries on OpenBSD.
+ // Use NamelinkModeSkip unconditionally.
+#if !defined(__OpenBSD__)
namelinkMode = cmInstallTargetGenerator::NamelinkModeNone;
if(libraryArgs.GetNamelinkOnly())
{
@@ -333,7 +336,9 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<s
{
namelinkMode = cmInstallTargetGenerator::NamelinkModeSkip;
}
-
+#else
+ namelinkMode = cmInstallTargetGenerator::NamelinkModeSkip;
+#endif
// Check if there is something to do.
if(targetList.GetVector().empty())
{