make/aix/makefiles/jsig.make

changeset 0
f90c822e73f8
child 9330
f175513c2c3a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/aix/makefiles/jsig.make	Wed Apr 27 01:25:04 2016 +0800
     1.3 @@ -0,0 +1,87 @@
     1.4 +#
     1.5 +# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 +# Copyright 2012, 2013 SAP AG. All rights reserved.
     1.7 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8 +#
     1.9 +# This code is free software; you can redistribute it and/or modify it
    1.10 +# under the terms of the GNU General Public License version 2 only, as
    1.11 +# published by the Free Software Foundation.
    1.12 +#
    1.13 +# This code is distributed in the hope that it will be useful, but WITHOUT
    1.14 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.15 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.16 +# version 2 for more details (a copy is included in the LICENSE file that
    1.17 +# accompanied this code).
    1.18 +#
    1.19 +# You should have received a copy of the GNU General Public License version
    1.20 +# 2 along with this work; if not, write to the Free Software Foundation,
    1.21 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.22 +#
    1.23 +# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.24 +# or visit www.oracle.com if you need additional information or have any
    1.25 +# questions.
    1.26 +#  
    1.27 +#
    1.28 +
    1.29 +# Rules to build signal interposition library, used by vm.make
    1.30 +
    1.31 +# libjsig.so: signal interposition library
    1.32 +JSIG = jsig
    1.33 +LIBJSIG = lib$(JSIG).so
    1.34 +
    1.35 +LIBJSIG_DEBUGINFO   = lib$(JSIG).debuginfo
    1.36 +LIBJSIG_DIZ         = lib$(JSIG).diz
    1.37 +
    1.38 +JSIGSRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/vm
    1.39 +
    1.40 +DEST_JSIG           = $(JDK_LIBDIR)/$(LIBJSIG)
    1.41 +DEST_JSIG_DEBUGINFO = $(JDK_LIBDIR)/$(LIBJSIG_DEBUGINFO)
    1.42 +DEST_JSIG_DIZ       = $(JDK_LIBDIR)/$(LIBJSIG_DIZ)
    1.43 +
    1.44 +LIBJSIG_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jsig
    1.45 +
    1.46 +# On Linux we really dont want a mapfile, as this library is small 
    1.47 +# and preloaded using LD_PRELOAD, making functions private will 
    1.48 +# cause problems with interposing. See CR: 6466665
    1.49 +# LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
    1.50 +
    1.51 +LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE)
    1.52 +
    1.53 +LFLAGS_JSIG += $(BIN_UTILS)
    1.54 +
    1.55 +# DEBUG_BINARIES overrides everything, use full -g debug information
    1.56 +ifeq ($(DEBUG_BINARIES), true)
    1.57 +  JSIG_DEBUG_CFLAGS = -g
    1.58 +endif
    1.59 +
    1.60 +$(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)
    1.61 +	@echo Making signal interposition lib...
    1.62 +	$(QUIETLY) $(CXX) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
    1.63 +                         $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< -ldl
    1.64 +
    1.65 +#ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
    1.66 +#	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO)
    1.67 +#	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@
    1.68 +#  ifeq ($(STRIP_POLICY),all_strip)
    1.69 +#	$(QUIETLY) $(STRIP) $@
    1.70 +#  else
    1.71 +#    ifeq ($(STRIP_POLICY),min_strip)
    1.72 +#	$(QUIETLY) $(STRIP) -g $@
    1.73 +#    # implied else here is no stripping at all
    1.74 +#    endif
    1.75 +#  endif
    1.76 +#  ifeq ($(ZIP_DEBUGINFO_FILES),1)
    1.77 +#	$(ZIPEXE) -q -y $(LIBJSIG_DIZ) $(LIBJSIG_DEBUGINFO)
    1.78 +#	$(RM) $(LIBJSIG_DEBUGINFO)
    1.79 +#  endif
    1.80 +#endif
    1.81 +
    1.82 +install_jsig: $(LIBJSIG)
    1.83 +	@echo "Copying $(LIBJSIG) to $(DEST_JSIG)"
    1.84 +	$(QUIETLY) test -f $(LIBJSIG_DEBUGINFO) && \
    1.85 +	    cp -f $(LIBJSIG_DEBUGINFO) $(DEST_JSIG_DEBUGINFO)
    1.86 +	$(QUIETLY) test -f $(LIBJSIG_DIZ) && \
    1.87 +	    cp -f $(LIBJSIG_DIZ) $(DEST_JSIG_DIZ)
    1.88 +	$(QUIETLY) cp -f $(LIBJSIG) $(DEST_JSIG) && echo "Done"
    1.89 +
    1.90 +.PHONY: install_jsig

mercurial