diff make/bsd/makefiles/vm.make @ 4895:2cb5d5f6d5e5

8015252: Enable HotSpot build with Clang Reviewed-by: twisti, dholmes, kvn
author simonis
date Tue, 04 Jun 2013 22:16:15 -0700
parents e484fe2abebd
children 7b772f9e0365
line wrap: on
line diff
--- a/make/bsd/makefiles/vm.make	Tue Jun 04 12:06:54 2013 -0700
+++ b/make/bsd/makefiles/vm.make	Tue Jun 04 22:16:15 2013 -0700
@@ -126,7 +126,11 @@
 LFLAGS += -Xlinker -z -Xlinker noexecstack
 endif
 
-LIBS += -lm -pthread
+LIBS += -lm
+
+ifeq ($(USE_CLANG),)
+  LIBS += -pthread
+endif
 
 # By default, link the *.o into the library, not the executable.
 LINK_INTO$(LINK_INTO) = LIBJVM