summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/jdk13/Makefile9
-rw-r--r--java/jdk14/Makefile9
-rw-r--r--java/jdk15/Makefile9
-rw-r--r--java/jdk16/Makefile9
4 files changed, 36 insertions, 0 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index c9cf50626a3d..d66e332faf9b 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -132,6 +132,15 @@ pre-build:
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
+ @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \
+ then \
+ echo "Please set the value of the sysctl compat.linux.osname"; \
+ echo "to 'Linux' with the command:"; \
+ echo " sysctl compat.linux.osname=Linux"; \
+ echo "Having it set to other values, such as 'FreeBSD',"; \
+ echo "is known to cause problems during bootstrapping."; \
+ exit 1; \
+ fi
.endif
post-build:
diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile
index c9cf50626a3d..d66e332faf9b 100644
--- a/java/jdk14/Makefile
+++ b/java/jdk14/Makefile
@@ -132,6 +132,15 @@ pre-build:
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
+ @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \
+ then \
+ echo "Please set the value of the sysctl compat.linux.osname"; \
+ echo "to 'Linux' with the command:"; \
+ echo " sysctl compat.linux.osname=Linux"; \
+ echo "Having it set to other values, such as 'FreeBSD',"; \
+ echo "is known to cause problems during bootstrapping."; \
+ exit 1; \
+ fi
.endif
post-build:
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index c9cf50626a3d..d66e332faf9b 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -132,6 +132,15 @@ pre-build:
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
+ @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \
+ then \
+ echo "Please set the value of the sysctl compat.linux.osname"; \
+ echo "to 'Linux' with the command:"; \
+ echo " sysctl compat.linux.osname=Linux"; \
+ echo "Having it set to other values, such as 'FreeBSD',"; \
+ echo "is known to cause problems during bootstrapping."; \
+ exit 1; \
+ fi
.endif
post-build:
diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile
index c9cf50626a3d..d66e332faf9b 100644
--- a/java/jdk16/Makefile
+++ b/java/jdk16/Makefile
@@ -132,6 +132,15 @@ pre-build:
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
+ @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \
+ then \
+ echo "Please set the value of the sysctl compat.linux.osname"; \
+ echo "to 'Linux' with the command:"; \
+ echo " sysctl compat.linux.osname=Linux"; \
+ echo "Having it set to other values, such as 'FreeBSD',"; \
+ echo "is known to cause problems during bootstrapping."; \
+ exit 1; \
+ fi
.endif
post-build: