summaryrefslogtreecommitdiff
path: root/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_gcc.make
blob: 83d1056761726eb0e264d0bc7bd267ea5be5387c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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