28 # Hook to include the corresponding custom file, if present. |
28 # Hook to include the corresponding custom file, if present. |
29 $(eval $(call IncludeCustomExtension, lib/Lib-jdk.management.gmk)) |
29 $(eval $(call IncludeCustomExtension, lib/Lib-jdk.management.gmk)) |
30 |
30 |
31 ################################################################################ |
31 ################################################################################ |
32 |
32 |
33 ifeq ($(OPENJDK_TARGET_OS), windows) |
33 ifeq ($(call isTargetOs, windows), true) |
34 # In (at least) VS2013 and later, -DPSAPI_VERSION=1 is needed to generate |
34 # In (at least) VS2013 and later, -DPSAPI_VERSION=1 is needed to generate |
35 # a binary that is compatible with windows versions older than 7/2008R2. |
35 # a binary that is compatible with windows versions older than 7/2008R2. |
36 # See MSDN documentation for GetProcessMemoryInfo for more information. |
36 # See MSDN documentation for GetProcessMemoryInfo for more information. |
37 LIBMANAGEMENT_EXT_CFLAGS += -DPSAPI_VERSION=1 |
37 LIBMANAGEMENT_EXT_CFLAGS += -DPSAPI_VERSION=1 |
38 endif |
38 endif |
39 |
39 |
40 LIBMANAGEMENT_EXT_OPTIMIZATION := HIGH |
40 LIBMANAGEMENT_EXT_OPTIMIZATION := HIGH |
41 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), ) |
41 ifeq ($(call isTargetOs, solaris linux), true) |
42 ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true) |
42 ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true) |
43 LIBMANAGEMENT_EXT_OPTIMIZATION := LOW |
43 LIBMANAGEMENT_EXT_OPTIMIZATION := LOW |
44 endif |
44 endif |
45 endif |
45 endif |
46 |
46 |