< prev index next >

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

Print this page


   1 #
   2 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  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), \
  91     OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
  92     PROGRAM := unpack200, \
  93     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  94     RC_FLAGS := $(RC_FLAGS) \
  95         -D "JDK_FNAME=unpack200.exe" \
  96         -D "JDK_INTERNAL_NAME=unpack200" \
  97         -D "JDK_FTYPE=0x1L", \
  98     DEBUG_SYMBOLS := true, \
  99     MANIFEST := $(JDK_TOPDIR)/src/jdk.runtime/windows/native/unpack200/unpack200_proto.exe.manifest))
 100 
 101 ifneq ($(USE_EXTERNAL_LIBZ), true)
   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  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     DISABLED_WARNINGS_gcc := sign-compare unused-result format-nonliteral \
  83         format-security parentheses, \
  84     DISABLED_WARNINGS_microsoft := 4267 4018, \
  85     MAPFILE := $(UNPACK_MAPFILE),\
  86     LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
  87         $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
  88         $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)unpack$(SHARED_LIBRARY_SUFFIX)) \
  89         $(call SET_SHARED_LIBRARY_ORIGIN), \
  90     LDFLAGS_linux := -lc, \
  91     LDFLAGS_solaris := $(UNPACKEXE_LDFLAGS_solaris) -lc, \
  92     LDFLAGS_SUFFIX := $(LIBCXX), \
  93     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe$(OUTPUT_SUBDIR), \
  94     OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
  95     PROGRAM := unpack200, \
  96     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  97     RC_FLAGS := $(RC_FLAGS) \
  98         -D "JDK_FNAME=unpack200.exe" \
  99         -D "JDK_INTERNAL_NAME=unpack200" \
 100         -D "JDK_FTYPE=0x1L", \
 101     DEBUG_SYMBOLS := true, \
 102     MANIFEST := $(JDK_TOPDIR)/src/jdk.runtime/windows/native/unpack200/unpack200_proto.exe.manifest))
 103 
 104 ifneq ($(USE_EXTERNAL_LIBZ), true)
< prev index next >