diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2015-04-15 15:30:07 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2015-04-15 15:30:07 +0000 |
commit | 90ddbe704571a5d6925b262855bdac5abe2637fe (patch) | |
tree | afcb9a5a8ea1e2ab8c153db146e6d1cbb0f4561e /java/openjdk8 | |
parent | - Update to 3.2 (diff) |
Fix build with GCC with recent head kernel by disabling PCH for GCC.
The case for this is a recent head kernel building an older branch that uses
GCC in a jail.
This is discussed at https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html
It may be possible to fix GCC to do the right thing with mmap(2) but it would
not be simple to make ports use a fixed GCC on older releases and without
needlessly building a ports compiler when the system one would otherwise be
fine without PCH.
With hat: portmgr
Diffstat (limited to 'java/openjdk8')
-rw-r--r-- | java/openjdk8/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index 4a170fa7b888..65bbd36aeab1 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -192,6 +192,11 @@ CONFIGURE_ENV= LIBCXX="-lc++" .endif .endif +# GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html +.if ${COMPILER_TYPE} == gcc +MAKE_ARGS+= USE_PRECOMPILED_HEADER=0 +.endif + .if empty(ICONV_LIB) ICONV_CPPFLAGS= -DLIBICONV_PLUG .else |