comparison make/windows/makefiles/compile.make @ 6020:d652a62d6e03

7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris Summary: Add support for ENABLE_FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES build flags. Add support for .diz files. Reviewed-by: dholmes, ohair, sspitsyn
author dcubed
date Fri, 23 Mar 2012 11:50:33 -0700
parents 719f7007c8e8
children 74c359c4a9e5
comparison
equal deleted inserted replaced
4958:3b24e7e01d20 6020:d652a62d6e03
1 # 1 #
2 # Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 1997, 2012, 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.
50 # improving the quality of crash log stack traces involving jvm.dll. 50 # improving the quality of crash log stack traces involving jvm.dll.
51 51
52 # These are always used in all compiles 52 # These are always used in all compiles
53 CXX_FLAGS=/nologo /W3 /WX 53 CXX_FLAGS=/nologo /W3 /WX
54 54
55 # Let's add debug information always too. 55 # Let's add debug information when Full Debug Symbols is enabled
56 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
56 CXX_FLAGS=$(CXX_FLAGS) /Zi 57 CXX_FLAGS=$(CXX_FLAGS) /Zi
58 !endif
57 59
58 # Based on BUILDARCH we add some flags and select the default compiler name 60 # Based on BUILDARCH we add some flags and select the default compiler name
59 !if "$(BUILDARCH)" == "ia64" 61 !if "$(BUILDARCH)" == "ia64"
60 MACHINE=IA64 62 MACHINE=IA64
61 DEFAULT_COMPILER_NAME=VS2003 63 DEFAULT_COMPILER_NAME=VS2003
227 # Generic linker settings 229 # Generic linker settings
228 LD=link.exe 230 LD=link.exe
229 LD_FLAGS= $(LD_FLAGS) kernel32.lib user32.lib gdi32.lib winspool.lib \ 231 LD_FLAGS= $(LD_FLAGS) kernel32.lib user32.lib gdi32.lib winspool.lib \
230 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ 232 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
231 uuid.lib Wsock32.lib winmm.lib /nologo /machine:$(MACHINE) /opt:REF \ 233 uuid.lib Wsock32.lib winmm.lib /nologo /machine:$(MACHINE) /opt:REF \
232 /opt:ICF,8 /map /debug 234 /opt:ICF,8
235 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
236 LD_FLAGS= $(LD_FLAGS) /map /debug
237 !endif
233 238
234 239
235 !if $(MSC_VER) >= 1600 240 !if $(MSC_VER) >= 1600
236 LD_FLAGS= $(LD_FLAGS) psapi.lib 241 LD_FLAGS= $(LD_FLAGS) psapi.lib
237 !endif 242 !endif