From 1d0078a2afe067017d1266762b329812f7d999a8 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 17 Mar 2019 11:27:27 +0000 Subject: [PATCH] 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 --- lib/libomp/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libomp/Makefile b/lib/libomp/Makefile index 5814f20d0dfa..b78a07da2933 100644 --- a/lib/libomp/Makefile +++ b/lib/libomp/Makefile @@ -66,4 +66,6 @@ LDFLAGS+= -Wl,-soname,libomp.so VERSION_MAP= ${OMPSRC}/exports_so.txt +LIBADD+= pthread + .include