--- a/jdk/make/common/Defs-embedded.gmk Wed Jul 05 17:45:27 2017 +0200
+++ b/jdk/make/common/Defs-embedded.gmk Fri May 27 19:04:48 2011 -0400
@@ -49,5 +49,16 @@
JRE_REDUCED_HEADLESS_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-reduced-headless-image
JRE_REDUCED_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-reduced-image
+# Override on linux to further reduce binary/lib sizes in product build
+ifeq ($(PLATFORM), linux)
+ ifeq ($(VARIANT), OPT)
+ ifneq ($(NO_STRIP), true)
+ ifneq ($(DEBUG_BINARIES), true)
+ POST_STRIP_PROCESS = $(STRIP) --strip-unneeded
+ endif
+ endif
+ endif
+endif
+
endif # JAVASE_EMBEDDED