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
This commit is contained in:
Dimitry Andric 2019-03-17 11:27:27 +00:00
parent 76d32f047a
commit 1d0078a2af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345242

View File

@ -66,4 +66,6 @@ LDFLAGS+= -Wl,-soname,libomp.so
VERSION_MAP= ${OMPSRC}/exports_so.txt
LIBADD+= pthread
.include <bsd.lib.mk>