svn commit: r345278 - head/lib/libomp

Dimitry Andric dim at FreeBSD.org
Mon Mar 18 19:11:12 UTC 2019


Author: dim
Date: Mon Mar 18 19:11:11 2019
New Revision: 345278
URL: https://svnweb.freebsd.org/changeset/base/345278

Log:
  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

Modified:
  head/lib/libomp/Makefile

Modified: head/lib/libomp/Makefile
==============================================================================
--- head/lib/libomp/Makefile	Mon Mar 18 18:05:19 2019	(r345277)
+++ head/lib/libomp/Makefile	Mon Mar 18 19:11:11 2019	(r345278)
@@ -67,5 +67,6 @@ LDFLAGS+=	-Wl,-soname,libomp.so
 VERSION_MAP=	${OMPSRC}/exports_so.txt
 
 LIBADD+=	pthread
+LIBADD+=	m
 
 .include <bsd.lib.mk>


More information about the svn-src-all mailing list