< prev index next >

jdk/make/launcher/Launcher-jdk.pack200.gmk

Print this page




  44 else
  45   UNPACKEXE_CFLAGS += -I$(JDK_TOPDIR)/src/java.base/share/native/libzip/zlib-1.2.8
  46   UNPACKEXE_ZIPOBJS := $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/zcrc32$(OBJ_SUFFIX) \
  47       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/deflate$(OBJ_SUFFIX) \
  48       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/trees$(OBJ_SUFFIX) \
  49       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/zadler32$(OBJ_SUFFIX) \
  50       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/compress$(OBJ_SUFFIX) \
  51       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/zutil$(OBJ_SUFFIX) \
  52       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inflate$(OBJ_SUFFIX) \
  53       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/infback$(OBJ_SUFFIX) \
  54       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \
  55       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX)
  56 
  57 endif
  58 
  59 UNPACKEXE_LANG := C
  60 ifeq ($(OPENJDK_TARGET_OS), solaris)
  61   UNPACKEXE_LANG := C++
  62 endif
  63 




  64 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
  65 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
  66 # if feeded with a version script which contains named tags.
  67 ifeq ($(USING_BROKEN_SUSE_LD), yes)
  68   UNPACK_MAPFILE = $(JDK_TOPDIR)/make/mapfiles/libunpack/mapfile-vers-unpack200.anonymous


  69 else
  70   UNPACK_MAPFILE = $(JDK_TOPDIR)/make/mapfiles/libunpack/mapfile-vers-unpack200
  71 endif
  72 
  73 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
  74     SRC := $(UNPACKEXE_SRC), \
  75     LANG := $(UNPACKEXE_LANG), \
  76     OPTIMIZATION := LOW, \
  77     CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
  78     CFLAGS_release := -DPRODUCT, \
  79     CFLAGS_linux := -fPIC, \
  80     CFLAGS_solaris := -KPIC, \
  81     CFLAGS_macosx := -fPIC, \
  82     MAPFILE := $(UNPACK_MAPFILE),\
  83     LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
  84         $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
  85         $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)unpack$(SHARED_LIBRARY_SUFFIX)) \
  86         $(call SET_SHARED_LIBRARY_ORIGIN), \
  87     LDFLAGS_linux := -lc, \
  88     LDFLAGS_solaris := $(UNPACKEXE_LDFLAGS_solaris) -lc, \
  89     LDFLAGS_SUFFIX := $(LIBCXX), \
  90     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe$(OUTPUT_SUBDIR), \


  44 else
  45   UNPACKEXE_CFLAGS += -I$(JDK_TOPDIR)/src/java.base/share/native/libzip/zlib-1.2.8
  46   UNPACKEXE_ZIPOBJS := $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/zcrc32$(OBJ_SUFFIX) \
  47       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/deflate$(OBJ_SUFFIX) \
  48       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/trees$(OBJ_SUFFIX) \
  49       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/zadler32$(OBJ_SUFFIX) \
  50       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/compress$(OBJ_SUFFIX) \
  51       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/zutil$(OBJ_SUFFIX) \
  52       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inflate$(OBJ_SUFFIX) \
  53       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/infback$(OBJ_SUFFIX) \
  54       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \
  55       $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX)
  56 
  57 endif
  58 
  59 UNPACKEXE_LANG := C
  60 ifeq ($(OPENJDK_TARGET_OS), solaris)
  61   UNPACKEXE_LANG := C++
  62 endif
  63 
  64 UNPACK_MAPFILE_DIR := $(JDK_TOPDIR)/make/mapfiles/libunpack
  65 UNPACK_MAPFILE_PLATFORM_FILE := \
  66     $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH)
  67 
  68 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
  69 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
  70 # if feeded with a version script which contains named tags.
  71 ifeq ($(USING_BROKEN_SUSE_LD), yes)
  72   UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200.anonymous
  73 else ifneq ($(wildcard $(UNPACK_MAPFILE_PLATFORM_FILE)), )
  74   UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
  75 else
  76   UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
  77 endif
  78 
  79 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
  80     SRC := $(UNPACKEXE_SRC), \
  81     LANG := $(UNPACKEXE_LANG), \
  82     OPTIMIZATION := LOW, \
  83     CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
  84     CFLAGS_release := -DPRODUCT, \
  85     CFLAGS_linux := -fPIC, \
  86     CFLAGS_solaris := -KPIC, \
  87     CFLAGS_macosx := -fPIC, \
  88     MAPFILE := $(UNPACK_MAPFILE),\
  89     LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
  90         $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
  91         $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)unpack$(SHARED_LIBRARY_SUFFIX)) \
  92         $(call SET_SHARED_LIBRARY_ORIGIN), \
  93     LDFLAGS_linux := -lc, \
  94     LDFLAGS_solaris := $(UNPACKEXE_LDFLAGS_solaris) -lc, \
  95     LDFLAGS_SUFFIX := $(LIBCXX), \
  96     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe$(OUTPUT_SUBDIR), \
< prev index next >