2019-01-30 14:07:13 +00:00
|
|
|
# HG changeset patch
|
|
|
|
# User sgehwolf
|
|
|
|
# Date 1537541916 -7200
|
|
|
|
# Fri Sep 21 16:58:36 2018 +0200
|
|
|
|
# Node ID 4010c90156d1bfeaf988dbfeb01520f2e3a66ea8
|
|
|
|
# Parent 54afe70c50b6a6685763d00883e5173c0ba3a19d
|
|
|
|
8210761: libjsig is being compiled without optimization
|
|
|
|
Reviewed-by: erikj, ihse
|
|
|
|
|
2018-09-19 12:06:45 +00:00
|
|
|
diff --git openjdk.orig/hotspot/make/linux/makefiles/jsig.make openjdk/hotspot/make/linux/makefiles/jsig.make
|
|
|
|
--- openjdk.orig/hotspot/make/linux/makefiles/jsig.make
|
|
|
|
+++ openjdk/hotspot/make/linux/makefiles/jsig.make
|
2019-01-30 14:07:13 +00:00
|
|
|
@@ -51,10 +51,15 @@
|
2018-09-19 12:06:45 +00:00
|
|
|
JSIG_DEBUG_CFLAGS = -g
|
|
|
|
endif
|
|
|
|
|
|
|
|
+# Optimize jsig lib at level -O3 unless it's a slowdebug build
|
|
|
|
+ifneq ($(DEBUG_LEVEL), slowdebug)
|
|
|
|
+ JSIG_OPT_FLAGS = $(OPT_CFLAGS)
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
$(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)
|
2019-01-30 14:07:13 +00:00
|
|
|
@echo Making signal interposition lib...
|
|
|
|
$(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
|
2018-09-19 12:06:45 +00:00
|
|
|
- $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) $(EXTRA_CFLAGS) -o $@ $< -ldl
|
|
|
|
+ $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) $(JSIG_OPT_FLAGS) $(EXTRA_CFLAGS) -o $@ $< -ldl
|
|
|
|
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
|
2019-01-30 14:07:13 +00:00
|
|
|
ifneq ($(STRIP_POLICY),no_strip)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO)
|