$OpenBSD: patch-Source_cmComputeLinkInformation_cxx,v 1.6 2013/06/06 12:47:06 dcoppa Exp $
--- Source/cmComputeLinkInformation.cxx.orig	Wed May 15 19:38:13 2013
+++ Source/cmComputeLinkInformation.cxx	Thu May 30 11:08:06 2013
@@ -1070,12 +1070,21 @@ void cmComputeLinkInformation::AddTargetItem(std::stri
     this->SharedLibrariesLinked.insert(target);
     }
 
-  // Handle case of an imported shared library with no soname.
-  if(this->NoSONameUsesPath &&
-     target->IsImportedSharedLibWithoutSOName(this->Config))
+  if(this->OpenBSD)
     {
-    this->AddSharedLibNoSOName(item);
-    return;
+    if(target->GetType() == cmTarget::SHARED_LIBRARY)
+      {
+      this->AddSharedLibNoSOName(item);
+      return;
+      }
+    } else {
+    // Handle case of an imported shared library with no soname.
+    if(this->NoSONameUsesPath &&
+       target->IsImportedSharedLibWithoutSOName(this->Config))
+      {
+      this->AddSharedLibNoSOName(item);
+      return;
+      }
     }
 
   // If this platform wants a flag before the full path, add it.
