< prev index next >

make/hotspot/lib/CompileLibjsig.gmk

Print this page


   1 #
   2 # Copyright (c) 2013, 2017, 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


  73       # NOTE: The old build compiled this library without -soname.
  74       # To emulate this, we need to clear out SET_SHARED_LIBRARY_NAME.
  75       SET_SHARED_LIBRARY_NAME :=
  76 
  77     else ifeq ($(OPENJDK_TARGET_OS), macosx)
  78       LIBJSIG_CFLAGS := -m64 -D_GNU_SOURCE -pthread -mno-omit-leaf-frame-pointer -mstack-alignment=16 -fPIC
  79       LIBJSIG_LDFLAGS := $(LDFLAGS_HASH_STYLE)
  80     else
  81       $(error Unknown target OS $(OPENJDK_TARGET_OS) in CompileLibjsig.gmk)
  82     endif
  83 
  84     LIBJSIG_SRC_DIR := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libjsig
  85     LIBJSIG_MAPFILE := $(wildcard $(TOPDIR)/make/mapfiles/libjsig/mapfile-vers-$(OPENJDK_TARGET_OS))
  86     LIBJSIG_OUTPUTDIR := $(HOTSPOT_OUTPUTDIR)/libjsig
  87 
  88     LIBJSIG_LDFLAGS += $(SHARED_LIBRARY_FLAGS)
  89 
  90     LIB_OUTPUTDIR := $(call FindLibDirForModule, java.base)
  91 
  92     $(eval $(call SetupNativeCompilation, BUILD_LIBJSIG, \
  93         LIBRARY := jsig, \
  94         SRC := $(LIBJSIG_SRC_DIR), \
  95         OUTPUT_DIR := $(LIB_OUTPUTDIR), \
  96         LANG := C, \
  97         CFLAGS := $(LIBJSIG_CFLAGS) $(LIBJSIG_CPU_FLAGS), \
  98         LDFLAGS := $(LIBJSIG_LDFLAGS) $(LIBJSIG_CPU_FLAGS), \
  99         LIBS := $(LIBJSIG_LIBS), \
 100         MAPFILE := $(LIBJSIG_MAPFILE), \
 101         OBJECT_DIR := $(LIBJSIG_OUTPUTDIR)/objs, \
 102     ))
 103 
 104     TARGETS += $(BUILD_LIBJSIG)
 105 
 106     ############################################################################
 107     # Create symlinks in each variant sub dir
 108     ifeq ($(OPENJDK_TARGET_OS), macosx)
 109       DEBUG_INFO_SUFFIX := $(SHARED_LIBRARY_SUFFIX).dSYM
 110     else
 111       DEBUG_INFO_SUFFIX := .debuginfo
 112     endif
 113 


   1 #
   2 # Copyright (c) 2013, 2018, 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


  73       # NOTE: The old build compiled this library without -soname.
  74       # To emulate this, we need to clear out SET_SHARED_LIBRARY_NAME.
  75       SET_SHARED_LIBRARY_NAME :=
  76 
  77     else ifeq ($(OPENJDK_TARGET_OS), macosx)
  78       LIBJSIG_CFLAGS := -m64 -D_GNU_SOURCE -pthread -mno-omit-leaf-frame-pointer -mstack-alignment=16 -fPIC
  79       LIBJSIG_LDFLAGS := $(LDFLAGS_HASH_STYLE)
  80     else
  81       $(error Unknown target OS $(OPENJDK_TARGET_OS) in CompileLibjsig.gmk)
  82     endif
  83 
  84     LIBJSIG_SRC_DIR := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libjsig
  85     LIBJSIG_MAPFILE := $(wildcard $(TOPDIR)/make/mapfiles/libjsig/mapfile-vers-$(OPENJDK_TARGET_OS))
  86     LIBJSIG_OUTPUTDIR := $(HOTSPOT_OUTPUTDIR)/libjsig
  87 
  88     LIBJSIG_LDFLAGS += $(SHARED_LIBRARY_FLAGS)
  89 
  90     LIB_OUTPUTDIR := $(call FindLibDirForModule, java.base)
  91 
  92     $(eval $(call SetupNativeCompilation, BUILD_LIBJSIG, \
  93         NAME := jsig, \
  94         SRC := $(LIBJSIG_SRC_DIR), \
  95         OUTPUT_DIR := $(LIB_OUTPUTDIR), \
  96         LANG := C, \
  97         CFLAGS := $(LIBJSIG_CFLAGS) $(LIBJSIG_CPU_FLAGS), \
  98         LDFLAGS := $(LIBJSIG_LDFLAGS) $(LIBJSIG_CPU_FLAGS), \
  99         LIBS := $(LIBJSIG_LIBS), \
 100         MAPFILE := $(LIBJSIG_MAPFILE), \
 101         OBJECT_DIR := $(LIBJSIG_OUTPUTDIR)/objs, \
 102     ))
 103 
 104     TARGETS += $(BUILD_LIBJSIG)
 105 
 106     ############################################################################
 107     # Create symlinks in each variant sub dir
 108     ifeq ($(OPENJDK_TARGET_OS), macosx)
 109       DEBUG_INFO_SUFFIX := $(SHARED_LIBRARY_SUFFIX).dSYM
 110     else
 111       DEBUG_INFO_SUFFIX := .debuginfo
 112     endif
 113 


< prev index next >