Fix for Fortran shared libraries that were generated without

versioning.

OK ajacoutot@, landry@
This commit is contained in:
dcoppa 2010-04-22 16:10:11 +00:00
parent c4ba279bd3
commit 49e2a1d89e
2 changed files with 7 additions and 6 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.18 2010/04/15 20:30:47 dcoppa Exp $
# $OpenBSD: Makefile,v 1.19 2010/04/22 16:10:11 dcoppa Exp $
HOMEPAGE= http://www.cmake.org/
CATEGORIES= devel
COMMENT= portable build system
DISTNAME= cmake-2.4.8
PKGNAME= ${DISTNAME}p3
PKGNAME= ${DISTNAME}p4
MASTER_SITES= ${HOMEPAGE}files/v2.4/
MAINTAINER= Marc Espie <espie@openbsd.org>

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-Modules_Platform_OpenBSD_cmake,v 1.1.1.1 2006/07/20 09:23:13 espie Exp $
--- Modules/Platform/OpenBSD.cmake.orig Wed May 17 15:48:52 2006
+++ Modules/Platform/OpenBSD.cmake Mon Jul 3 14:45:04 2006
@@ -1,2 +1,37 @@
$OpenBSD: patch-Modules_Platform_OpenBSD_cmake,v 1.2 2010/04/22 16:10:11 dcoppa Exp $
--- Modules/Platform/OpenBSD.cmake.orig Mon Jan 21 19:59:51 2008
+++ Modules/Platform/OpenBSD.cmake Fri Apr 16 10:33:28 2010
@@ -1,2 +1,38 @@
-SET(CMAKE_DL_LIBS "")
-INCLUDE(Platform/UnixPaths)
+IF(EXISTS /usr/include/dlfcn.h)
@ -14,6 +14,7 @@ $OpenBSD: patch-Modules_Platform_OpenBSD_cmake,v 1.1.1.1 2006/07/20 09:23:13 esp
+# XXX we set these so that they will be detected
+ SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
+ SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
+ SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-soname,")
+ENDIF(EXISTS /usr/include/dlfcn.h)
+
+IF($ENV{LOCALBASE})