- Use '-pthread' for Clang. Clang supports '-pthread' on all BSDs except for Darwin. [1] Reported by: Achilleas Mantzios <achill@matrix.gatewaynet.com> [1] Tested by: Achilleas Mantzios <achill@matrix.gatewaynet.com> [1]
14 lines
304 B
Makefile
14 lines
304 B
Makefile
--- hotspot/make/bsd/makefiles/vm.make.orig
|
|
+++ hotspot/make/bsd/makefiles/vm.make
|
|
@@ -132,6 +132,10 @@ LIBS += -lm
|
|
|
|
ifeq ($(USE_CLANG),)
|
|
LIBS += -pthread
|
|
+else
|
|
+ ifneq ($(OS_VENDOR), Darwin)
|
|
+ LIBS += -pthread
|
|
+ endif
|
|
endif
|
|
|
|
# By default, link the *.o into the library, not the executable.
|