changeset 5889:cb62e7be61c4

8133966: Allow OpenJDK to build on PaX-enabled kernels Reviewed-by: aph
author andrew
date Fri, 03 Jul 2015 23:56:44 +0100
parents ecdd49fa23ad
children 902bb117fdfb
files make/linux/makefiles/buildtree.make
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/linux/makefiles/buildtree.make	Fri Jul 03 23:53:28 2015 +0100
+++ b/make/linux/makefiles/buildtree.make	Fri Jul 03 23:56:44 2015 +0100
@@ -459,6 +459,10 @@
 	echo "  GAMMA_PROG=gamma_g"; \
 	echo "fi"; \
 	echo ""; \
+	echo "if [ -x \"$(PAX_COMMAND)\" ]; then "; \
+	echo "  $(PAX_COMMAND) $(PAX_COMMAND_ARGS) ./\$${GAMMA_PROG}"; \
+	echo "fi"; \
+	echo ""; \
 	echo "if [ \"$(OS_VENDOR)\" = \"Darwin\" ]; then "; \
 	echo "  # Ensure architecture for gamma and JAVA_HOME is the same."; \
 	echo "  # NOTE: gamma assumes the OpenJDK directory layout."; \