< prev index next >

make/lib/LibCommon.gmk

Print this page
rev 52916 : 8210459: Add support for generating compile_commands.json
Reviewed-by: andrew


  40 # by default.
  41 # On AIX/xlc we need at least xlc 13.1 for the symbol hiding (see JDK-8214063)
  42 # Also provide an override for non-conformant libraries.
  43 ifeq ($(TOOLCHAIN_TYPE), gcc)
  44   CFLAGS_JDKLIB += -fvisibility=hidden
  45   CXXFLAGS_JDKLIB += -fvisibility=hidden
  46   LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL
  47   EXPORT_ALL_SYMBOLS := -fvisibility=default
  48 else ifeq ($(TOOLCHAIN_TYPE), clang)
  49   ifneq ($(OPENJDK_TARGET_OS), macosx)
  50     CFLAGS_JDKLIB += -fvisibility=hidden
  51     CXXFLAGS_JDKLIB += -fvisibility=hidden
  52     EXPORT_ALL_SYMBOLS := -fvisibility=default
  53   endif
  54 else ifeq ($(TOOLCHAIN_TYPE), solstudio)
  55   CFLAGS_JDKLIB += -xldscope=hidden
  56   CXXFLAGS_JDKLIB += -xldscope=hidden
  57   EXPORT_ALL_SYMBOLS := -xldscope=global
  58 endif
  59 
  60 ################################################################################
  61 # Find a library
  62 # Param 1 - module name
  63 # Param 2 - library name
  64 # Param 3 - optional subdir for library
  65 FindLib = \
  66     $(call FindLibDirForModule, \
  67         $(strip $1))$(strip $3)/$(LIBRARY_PREFIX)$(strip $2)$(SHARED_LIBRARY_SUFFIX)
  68 
  69 ################################################################################
  70 # Find a static library
  71 # Param 1 - module name
  72 # Param 2 - library name
  73 # Param 3 - optional subdir for library
  74 FindStaticLib = \
  75     $(addprefix $(SUPPORT_OUTPUTDIR)/native/, \
  76         $(strip $1)$(strip $3)/$(LIBRARY_PREFIX)$(strip $2)$(STATIC_LIBRARY_SUFFIX))
  77 
  78 # Put the libraries here.
  79 INSTALL_LIBRARIES_HERE := $(call FindLibDirForModule, $(MODULE))
  80 
  81 ################################################################################


  40 # by default.
  41 # On AIX/xlc we need at least xlc 13.1 for the symbol hiding (see JDK-8214063)
  42 # Also provide an override for non-conformant libraries.
  43 ifeq ($(TOOLCHAIN_TYPE), gcc)
  44   CFLAGS_JDKLIB += -fvisibility=hidden
  45   CXXFLAGS_JDKLIB += -fvisibility=hidden
  46   LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL
  47   EXPORT_ALL_SYMBOLS := -fvisibility=default
  48 else ifeq ($(TOOLCHAIN_TYPE), clang)
  49   ifneq ($(OPENJDK_TARGET_OS), macosx)
  50     CFLAGS_JDKLIB += -fvisibility=hidden
  51     CXXFLAGS_JDKLIB += -fvisibility=hidden
  52     EXPORT_ALL_SYMBOLS := -fvisibility=default
  53   endif
  54 else ifeq ($(TOOLCHAIN_TYPE), solstudio)
  55   CFLAGS_JDKLIB += -xldscope=hidden
  56   CXXFLAGS_JDKLIB += -xldscope=hidden
  57   EXPORT_ALL_SYMBOLS := -xldscope=global
  58 endif
  59 


















  60 # Put the libraries here.
  61 INSTALL_LIBRARIES_HERE := $(call FindLibDirForModule, $(MODULE))
  62 
  63 ################################################################################
< prev index next >