make/solaris/makefiles/jsig.make

changeset 7354
8c76e844a7f9
parent 4344
892acf0431ef
child 7535
7ae4e26cb1e0
child 9717
23845b8c4b4b
equal deleted inserted replaced
7353:84e11eeec136 7354:8c76e844a7f9
1 # 1 #
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 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 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
45 LFLAGS_JSIG += -D_REENTRANT 45 LFLAGS_JSIG += -D_REENTRANT
46 else 46 else
47 LFLAGS_JSIG += -mt -xnolib 47 LFLAGS_JSIG += -mt -xnolib
48 endif 48 endif
49 49
50 $(LIBJSIG): $(ADD_GNU_DEBUGLINK) $(FIX_EMPTY_SEC_HDR_FLAGS) $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE) 50 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)
51 @echo Making signal interposition lib... 51 @echo Making signal interposition lib...
52 $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \ 52 $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
53 $(LFLAGS_JSIG) -o $@ $(JSIGSRCDIR)/jsig.c -ldl 53 $(LFLAGS_JSIG) -o $@ $(JSIGSRCDIR)/jsig.c -ldl
54 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 54 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
55 # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set.
56 # Clear the SHF_ALLOC flag (if set) from empty section headers.
57 # An empty section header has sh_addr == 0 and sh_size == 0.
58 # This problem has only been seen on Solaris X64, but we call this tool
59 # on all Solaris builds just in case.
60 $(QUIETLY) $(FIX_EMPTY_SEC_HDR_FLAGS) $@
61 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO) 55 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO)
62 # $(OBJCOPY) --add-gnu-debuglink=... corrupts SUNW_* sections. 56 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@
63 # Use $(ADD_GNU_DEBUGLINK) until a fixed $(OBJCOPY) is available.
64 # $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@
65 $(QUIETLY) $(ADD_GNU_DEBUGLINK) $(LIBJSIG_DEBUGINFO) $@
66 ifeq ($(STRIP_POLICY),all_strip) 57 ifeq ($(STRIP_POLICY),all_strip)
67 $(QUIETLY) $(STRIP) $@ 58 $(QUIETLY) $(STRIP) $@
68 else 59 else
69 ifeq ($(STRIP_POLICY),min_strip) 60 ifeq ($(STRIP_POLICY),min_strip)
70 $(QUIETLY) $(STRIP) -x $@ 61 $(QUIETLY) $(STRIP) -x $@

mercurial