Mercurial > hg > graal-jvmci-8
comparison make/linux/makefiles/jsig.make @ 7408:892acf0431ef
7153050: remove crufty '_g' support from HotSpot repo makefiles
Summary: Phase 1 is removing '_g' support from the Makefiles.
Reviewed-by: dcubed, sspitsyn, coleenp, tbell
Contributed-by: ron.durbin@oracle.com
author | dcubed |
---|---|
date | Fri, 14 Dec 2012 10:06:52 -0800 |
parents | d652a62d6e03 |
children | 989155e2d07a 26579ac80ce9 |
comparison
equal
deleted
inserted
replaced
7396:4a2ed49abd51 | 7408:892acf0431ef |
---|---|
22 # | 22 # |
23 # | 23 # |
24 | 24 |
25 # Rules to build signal interposition library, used by vm.make | 25 # Rules to build signal interposition library, used by vm.make |
26 | 26 |
27 # libjsig[_g].so: signal interposition library | 27 # libjsig.so: signal interposition library |
28 JSIG = jsig | 28 JSIG = jsig |
29 LIBJSIG = lib$(JSIG).so | 29 LIBJSIG = lib$(JSIG).so |
30 | 30 |
31 JSIG_G = $(JSIG)$(G_SUFFIX) | |
32 LIBJSIG_G = lib$(JSIG_G).so | |
33 | |
34 LIBJSIG_DEBUGINFO = lib$(JSIG).debuginfo | 31 LIBJSIG_DEBUGINFO = lib$(JSIG).debuginfo |
35 LIBJSIG_DIZ = lib$(JSIG).diz | 32 LIBJSIG_DIZ = lib$(JSIG).diz |
36 LIBJSIG_G_DEBUGINFO = lib$(JSIG_G).debuginfo | |
37 LIBJSIG_G_DIZ = lib$(JSIG_G).diz | |
38 | 33 |
39 JSIGSRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/vm | 34 JSIGSRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/vm |
40 | 35 |
41 DEST_JSIG = $(JDK_LIBDIR)/$(LIBJSIG) | 36 DEST_JSIG = $(JDK_LIBDIR)/$(LIBJSIG) |
42 DEST_JSIG_DEBUGINFO = $(JDK_LIBDIR)/$(LIBJSIG_DEBUGINFO) | 37 DEST_JSIG_DEBUGINFO = $(JDK_LIBDIR)/$(LIBJSIG_DEBUGINFO) |
58 | 53 |
59 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE) | 54 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE) |
60 @echo Making signal interposition lib... | 55 @echo Making signal interposition lib... |
61 $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \ | 56 $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \ |
62 $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< -ldl | 57 $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< -ldl |
63 $(QUIETLY) [ -f $(LIBJSIG_G) ] || { ln -s $@ $(LIBJSIG_G); } | |
64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) | 58 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
65 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO) | 59 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO) |
66 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@ | 60 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@ |
67 ifeq ($(STRIP_POLICY),all_strip) | 61 ifeq ($(STRIP_POLICY),all_strip) |
68 $(QUIETLY) $(STRIP) $@ | 62 $(QUIETLY) $(STRIP) $@ |
70 ifeq ($(STRIP_POLICY),min_strip) | 64 ifeq ($(STRIP_POLICY),min_strip) |
71 $(QUIETLY) $(STRIP) -g $@ | 65 $(QUIETLY) $(STRIP) -g $@ |
72 # implied else here is no stripping at all | 66 # implied else here is no stripping at all |
73 endif | 67 endif |
74 endif | 68 endif |
75 [ -f $(LIBJSIG_G_DEBUGINFO) ] || { ln -s $(LIBJSIG_DEBUGINFO) $(LIBJSIG_G_DEBUGINFO); } | |
76 ifeq ($(ZIP_DEBUGINFO_FILES),1) | 69 ifeq ($(ZIP_DEBUGINFO_FILES),1) |
77 $(ZIPEXE) -q -y $(LIBJSIG_DIZ) $(LIBJSIG_DEBUGINFO) $(LIBJSIG_G_DEBUGINFO) | 70 $(ZIPEXE) -q -y $(LIBJSIG_DIZ) $(LIBJSIG_DEBUGINFO) |
78 $(RM) $(LIBJSIG_DEBUGINFO) $(LIBJSIG_G_DEBUGINFO) | 71 $(RM) $(LIBJSIG_DEBUGINFO) |
79 [ -f $(LIBJSIG_G_DIZ) ] || { ln -s $(LIBJSIG_DIZ) $(LIBJSIG_G_DIZ); } | |
80 endif | 72 endif |
81 endif | 73 endif |
82 | 74 |
83 install_jsig: $(LIBJSIG) | 75 install_jsig: $(LIBJSIG) |
84 @echo "Copying $(LIBJSIG) to $(DEST_JSIG)" | 76 @echo "Copying $(LIBJSIG) to $(DEST_JSIG)" |