Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 23:49:59 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415161 - head/devel/openmp
Message-ID:  <201605132349.u4DNnxvo051140@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605132349.u4DNnxvo051140>