< prev index next >

make/lib/Lib-jdk.hotspot.agent.gmk

Print this page




  36   SA_LDFLAGS := -mt
  37 
  38 else ifeq ($(call isTargetOs, macosx), true)
  39   SA_CFLAGS := -Damd64 -D_GNU_SOURCE -mno-omit-leaf-frame-pointer \
  40       -mstack-alignment=16 -fPIC
  41   LIBSA_EXTRA_SRC := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent
  42 else ifeq ($(call isTargetOs, windows), true)
  43   SA_CFLAGS := -D_WINDOWS -D_DEBUG -D_CONSOLE -D_MBCS -EHsc
  44   ifeq ($(call isTargetCpu, x86_64), true)
  45     SA_CXXFLAGS := -DWIN64
  46   else
  47     # Only add /RTC1 flag for debug builds as it's
  48     # incompatible with release type builds. See
  49     # https://msdn.microsoft.com/en-us/library/8wtf2dfz.aspx
  50     ifeq ($(DEBUG_LEVEL),slowdebug)
  51       SA_CXXFLAGS := -RTC1
  52     endif
  53   endif
  54 endif
  55 


  56 ################################################################################
  57 
  58 $(eval $(call SetupJdkLibrary, BUILD_LIBSA, \
  59     NAME := saproc, \
  60     OPTIMIZATION := HIGH, \
  61     DISABLED_WARNINGS_microsoft := 4267, \
  62     DISABLED_WARNINGS_gcc := sign-compare pointer-arith, \
  63     DISABLED_WARNINGS_clang := sign-compare pointer-arith format-nonliteral, \
  64     DISABLED_WARNINGS_CXX_solstudio := truncwarn unknownpragma, \
  65     CFLAGS := $(CFLAGS_JDKLIB) $(SA_CFLAGS), \
  66     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(SA_CFLAGS) $(SA_CXXFLAGS), \
  67     EXTRA_SRC := $(LIBSA_EXTRA_SRC), \
  68     LDFLAGS := $(LDFLAGS_JDKLIB) $(SA_LDFLAGS), \
  69     LIBS_linux := $(LIBDL), \
  70     LIBS_solaris := -ldl -ldemangle -lthread -lproc, \
  71     LIBS_macosx := -framework Foundation -framework JavaNativeFoundation \
  72         -framework JavaRuntimeSupport -framework Security -framework CoreFoundation, \
  73     LIBS_windows := dbgeng.lib, \
  74 ))
  75 


  36   SA_LDFLAGS := -mt
  37 
  38 else ifeq ($(call isTargetOs, macosx), true)
  39   SA_CFLAGS := -Damd64 -D_GNU_SOURCE -mno-omit-leaf-frame-pointer \
  40       -mstack-alignment=16 -fPIC
  41   LIBSA_EXTRA_SRC := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent
  42 else ifeq ($(call isTargetOs, windows), true)
  43   SA_CFLAGS := -D_WINDOWS -D_DEBUG -D_CONSOLE -D_MBCS -EHsc
  44   ifeq ($(call isTargetCpu, x86_64), true)
  45     SA_CXXFLAGS := -DWIN64
  46   else
  47     # Only add /RTC1 flag for debug builds as it's
  48     # incompatible with release type builds. See
  49     # https://msdn.microsoft.com/en-us/library/8wtf2dfz.aspx
  50     ifeq ($(DEBUG_LEVEL),slowdebug)
  51       SA_CXXFLAGS := -RTC1
  52     endif
  53   endif
  54 endif
  55 
  56 SA_CFLAGS += -DLIBC=\"$(OPENJDK_TARGET_LIBC)\"
  57 
  58 ################################################################################
  59 
  60 $(eval $(call SetupJdkLibrary, BUILD_LIBSA, \
  61     NAME := saproc, \
  62     OPTIMIZATION := HIGH, \
  63     DISABLED_WARNINGS_microsoft := 4267, \
  64     DISABLED_WARNINGS_gcc := sign-compare pointer-arith, \
  65     DISABLED_WARNINGS_clang := sign-compare pointer-arith format-nonliteral, \
  66     DISABLED_WARNINGS_CXX_solstudio := truncwarn unknownpragma, \
  67     CFLAGS := $(CFLAGS_JDKLIB) $(SA_CFLAGS), \
  68     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(SA_CFLAGS) $(SA_CXXFLAGS), \
  69     EXTRA_SRC := $(LIBSA_EXTRA_SRC), \
  70     LDFLAGS := $(LDFLAGS_JDKLIB) $(SA_LDFLAGS), \
  71     LIBS_linux := $(LIBDL), \
  72     LIBS_solaris := -ldl -ldemangle -lthread -lproc, \
  73     LIBS_macosx := -framework Foundation -framework JavaNativeFoundation \
  74         -framework JavaRuntimeSupport -framework Security -framework CoreFoundation, \
  75     LIBS_windows := dbgeng.lib, \
  76 ))
  77 
< prev index next >