mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 07:57:38 -04:00
- 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]
12 lines
283 B
Makefile
12 lines
283 B
Makefile
--- hotspot/make/bsd/makefiles/gcc.make.orig
|
|
+++ hotspot/make/bsd/makefiles/gcc.make
|
|
@@ -200,6 +200,9 @@ ifeq ($(USE_CLANG),)
|
|
CFLAGS += -fvisibility=hidden
|
|
endif
|
|
else
|
|
+ ifneq ($(OS_VENDOR), Darwin)
|
|
+ CFLAGS += -pthread
|
|
+ endif
|
|
CFLAGS += -fvisibility=hidden
|
|
endif
|
|
|