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>
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to