1 $NetBSD: patch-hotspot_make_solaris_makefiles_saproc.make,v 1.1 2013/06/15 09:31:05 jperkin Exp $
3 Only use libdemangle for Sun Studio builds.
5 --- hotspot/make/solaris/makefiles/saproc.make.orig 2013-02-19 23:21:59.000000000 +0000
6 +++ hotspot/make/solaris/makefiles/saproc.make
7 @@ -61,6 +61,7 @@ ifdef USE_GCC
8 SA_LFLAGS += -D_REENTRANT
10 SA_LFLAGS += -mt -xnolib -norunpath
11 +LIBDEMANGLE = -ldemangle
14 # The libproc Pstack_iter() interface changed in Nevada-B159.
15 @@ -106,7 +107,7 @@ $(LIBSAPROC): $(ADD_GNU_DEBUGLINK) $(FIX
19 - -ldl -ldemangle -lthread -lc
20 + -ldl ${LIBDEMANGLE} -lthread -lc
21 [ -f $(LIBSAPROC_G) ] || { ln -s $@ $(LIBSAPROC_G); }
22 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
23 # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set.