svn commit: r415161 - head/devel/openmp

Baptiste Daroussin bapt at FreeBSD.org
Fri May 13 23:50:00 UTC 2016


Author: bapt
Date: Fri May 13 23:49:59 2016
New Revision: 415161
URL: https://svnweb.freebsd.org/changeset/ports/415161

Log:
  Provide a soname to ensure runtime linker find the version we do expect it to find

Modified:
  head/devel/openmp/Makefile

Modified: head/devel/openmp/Makefile
==============================================================================
--- head/devel/openmp/Makefile	Fri May 13 23:40:27 2016	(r415160)
+++ head/devel/openmp/Makefile	Fri May 13 23:49:59 2016	(r415161)
@@ -2,6 +2,7 @@
 
 PORTNAME=	openmp
 PORTVERSION=	3.8.0
+PORTREVISION=	1
 DISTVERSIONSUFFIX=	.src
 CATEGORIES=	devel
 MASTER_SITES=	http://llvm.org/releases/${PORTVERSION}/
@@ -14,10 +15,15 @@ LICENSE=	MIT
 USES=	tar:xz cmake perl5
 USE_PERL5=	build
 USE_LDCONFIG=	yes
+CMAKE_ARGS=	-DLIBOMP_LIBFLAGS:STRING="-Wl,-soname,libomp.so.0"
 ONLY_FOR_ARCHS=	amd64 # i386
 PLIST_FILES=	include/omp.h \
 		lib/libgomp.so \
 		lib/libiomp5.so \
+		lib/libomp.so.0 \
 		lib/libomp.so
 
+post-install:
+	${LN} -sf libomp.so ${STAGEDIR}${PREFIX}/lib/libomp.so.0
+
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list