From 93c79b58f99906f2602836d1cd94591b5f8f3c85 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 16 Nov 2018 17:30:17 +0000 Subject: - Fix reversed ccache version detection logic. Enable ccache support. - Use '-pthread' for Clang. Clang supports '-pthread' on all BSDs except for Darwin. [1] Reported by: Achilleas Mantzios [1] Tested by: Achilleas Mantzios [1] --- .../files/patch-common_autoconf_generated-configure.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 java/openjdk8/files/patch-common_autoconf_generated-configure.sh (limited to 'java/openjdk8/files/patch-common_autoconf_generated-configure.sh') diff --git a/java/openjdk8/files/patch-common_autoconf_generated-configure.sh b/java/openjdk8/files/patch-common_autoconf_generated-configure.sh new file mode 100644 index 000000000000..5d23acb86040 --- /dev/null +++ b/java/openjdk8/files/patch-common_autoconf_generated-configure.sh @@ -0,0 +1,11 @@ +--- common/autoconf/generated-configure.sh.orig ++++ common/autoconf/generated-configure.sh +@@ -36760,7 +36760,7 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 + $as_echo_n "checking if ccache supports precompiled headers... " >&6; } + HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | awk '{ split($3, a, "."); if (a[1] >= 3 && (a[2] > 1 || (a[2] == 1 && a[3] >= 4))) print "yes"; else print "no"; }') 2> /dev/null` +- if test "x$HAS_GOOD_CCACHE" = xyes; then ++ if test "x$HAS_GOOD_CCACHE" != xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 + $as_echo "no, disabling ccache" >&6; } + CCACHE= -- cgit v1.2.3