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:
dim 2019-03-17 11:27:27 +00:00
parent 8f6fafa869
commit ad625eb486

View File

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