diff -r 49ac5c39b28f -r 17f3d10c297f hotspot/make/bsd/makefiles/vm.make --- a/hotspot/make/bsd/makefiles/vm.make Tue Jun 04 12:06:54 2013 -0700 +++ b/hotspot/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