changeset 3848:3b188862d691

PR1679: Allow OpenJDK to build on PaX-enabled kernels
author andrew
date Wed, 19 Feb 2014 21:08:04 +0000
parents 24391b7e49b5
children 99ed2a7d2f87
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	Mon Mar 10 18:48:19 2014 +0000
+++ b/make/linux/makefiles/buildtree.make	Wed Feb 19 21:08:04 2014 +0000
@@ -435,6 +435,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."; \