From db7591a84800b976a754def37f1e67208eb9c2d3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Mar 2019 19:11:11 +0000 Subject: [PATCH] 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 --- lib/libomp/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libomp/Makefile b/lib/libomp/Makefile index b78a07da2933..982eef1de9c3 100644 --- a/lib/libomp/Makefile +++ b/lib/libomp/Makefile @@ -67,5 +67,6 @@ LDFLAGS+= -Wl,-soname,libomp.so VERSION_MAP= ${OMPSRC}/exports_so.txt LIBADD+= pthread +LIBADD+= m .include