2018-09-19 12:06:45 +00:00
|
|
|
diff --git openjdk.orig/hotspot/make/linux/makefiles/saproc.make openjdk/hotspot/make/linux/makefiles/saproc.make
|
|
|
|
--- openjdk.orig/hotspot/make/linux/makefiles/saproc.make
|
|
|
|
+++ openjdk/hotspot/make/linux/makefiles/saproc.make
|
|
|
|
@@ -59,6 +59,11 @@
|
|
|
|
SA_DEBUG_CFLAGS = -g
|
|
|
|
endif
|
|
|
|
|
|
|
|
+# Optimize saproc lib at level -O3 unless it's a slowdebug build
|
|
|
|
+ifneq ($(DEBUG_LEVEL), slowdebug)
|
|
|
|
+ SA_OPT_FLAGS = $(OPT_CFLAGS)
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
# if $(AGENT_DIR) does not exist, we don't build SA
|
|
|
|
# also, we don't build SA on Itanium or zero.
|
|
|
|
|
|
|
|
@@ -95,6 +100,7 @@
|
|
|
|
$(SASRCFILES) \
|
|
|
|
$(SA_LFLAGS) \
|
|
|
|
$(SA_DEBUG_CFLAGS) \
|
|
|
|
+ $(SA_OPT_FLAGS) \
|
|
|
|
$(EXTRA_CFLAGS) \
|
|
|
|
-o $@ \
|
2019-04-11 17:02:57 +00:00
|
|
|
-lthread_db -ldl
|