Also explicitly link libomp.so against -lm, as it transitively depends

on scalbn and a few other math functions, via libcompiler-rt.  This
should allow OpenMP programs to link with BFD linkers too.

Reported by:	jbeich
PR:		236062, 236581
MFC after:	1 month
X-MFC-With:	r344779
This commit is contained in:
Dimitry Andric 2019-03-18 19:11:11 +00:00
parent ff92380399
commit db7591a848
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345278

View File

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