comparison make/solaris/makefiles/saproc.make @ 20804:7848fc12602b

Merge with jdk8u40-b25
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Tue, 07 Apr 2015 14:58:49 +0200
parents 4ca6dc0799b6 8c76e844a7f9
children
comparison
equal deleted inserted replaced
20184:84105dcdb05b 20804:7848fc12602b
1 # 1 #
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
88 # Uncomment the following to simulate building on Nevada-B159 or later 88 # Uncomment the following to simulate building on Nevada-B159 or later
89 # when actually building on Nevada-B158 or earlier: 89 # when actually building on Nevada-B158 or earlier:
90 #SOLARIS_11_B159_OR_LATER=-DSOLARIS_11_B159_OR_LATER 90 #SOLARIS_11_B159_OR_LATER=-DSOLARIS_11_B159_OR_LATER
91 91
92 92
93 $(LIBSAPROC): $(ADD_GNU_DEBUGLINK) $(FIX_EMPTY_SEC_HDR_FLAGS) $(SASRCFILES) $(SADISOBJ) $(SAMAPFILE) 93 $(LIBSAPROC): $(SASRCFILES) $(SADISOBJ) $(SAMAPFILE)
94 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ 94 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
95 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ 95 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \
96 exit 1; \ 96 exit 1; \
97 fi 97 fi
98 @echo Making SA debugger back-end... 98 @echo Making SA debugger back-end...
119 $(SOLARIS_11_B159_OR_LATER) \ 119 $(SOLARIS_11_B159_OR_LATER) \
120 $(SADISSRCFILES) \ 120 $(SADISSRCFILES) \
121 -c -o $(SADISOBJ) 121 -c -o $(SADISOBJ)
122 122
123 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 123 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
124 # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set.
125 # Clear the SHF_ALLOC flag (if set) from empty section headers.
126 # An empty section header has sh_addr == 0 and sh_size == 0.
127 # This problem has only been seen on Solaris X64, but we call this tool
128 # on all Solaris builds just in case.
129 $(QUIETLY) $(FIX_EMPTY_SEC_HDR_FLAGS) $@
130 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO) 124 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO)
131 # $(OBJCOPY) --add-gnu-debuglink=... corrupts SUNW_* sections. 125 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@
132 # Use $(ADD_GNU_DEBUGLINK) until a fixed $(OBJCOPY) is available.
133 # $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@
134 $(QUIETLY) $(ADD_GNU_DEBUGLINK) $(LIBSAPROC_DEBUGINFO) $@
135 ifeq ($(STRIP_POLICY),all_strip) 126 ifeq ($(STRIP_POLICY),all_strip)
136 $(QUIETLY) $(STRIP) $@ 127 $(QUIETLY) $(STRIP) $@
137 else 128 else
138 ifeq ($(STRIP_POLICY),min_strip) 129 ifeq ($(STRIP_POLICY),min_strip)
139 $(QUIETLY) $(STRIP) -x $@ 130 $(QUIETLY) $(STRIP) -x $@