svn commit: r345242 - head/lib/libomp

Dimitry Andric dim at FreeBSD.org
Sun Mar 17 11:27:28 UTC 2019


Author: dim
Date: Sun Mar 17 11:27:27 2019
New Revision: 345242
URL: https://svnweb.freebsd.org/changeset/base/345242

Log:
  Explicitly link libomp.so against -lpthread, as it depends on pthread
  functionality.  This should make example OpenMP programs work out of the
  box.
  
  Reported by:	jbeich
  PR:		236062, 236581
  MFC after:	1 month
  X-MFC-With:	r344779

Modified:
  head/lib/libomp/Makefile

Modified: head/lib/libomp/Makefile
==============================================================================
--- head/lib/libomp/Makefile	Sun Mar 17 09:31:09 2019	(r345241)
+++ head/lib/libomp/Makefile	Sun Mar 17 11:27:27 2019	(r345242)
@@ -66,4 +66,6 @@ LDFLAGS+=	-Wl,-soname,libomp.so
 
 VERSION_MAP=	${OMPSRC}/exports_so.txt
 
+LIBADD+=	pthread
+
 .include <bsd.lib.mk>


More information about the svn-src-head mailing list