21 lines
951 B
Diff
21 lines
951 B
Diff
|
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
|
||
|
@@ -51,10 +51,15 @@ ifeq ($(DEBUG_BINARIES), true)
|
||
|
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)
|
||
|
@echo Making signal interposition lib...
|
||
|
$(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
|
||
|
- $(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)
|
||
|
$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO)
|
||
|
ifeq ($(STRIP_POLICY),all_strip)
|