openjdk-8-native: Fix sigsegv with gcc7
openjdk-8-native: Fix sigsegv with gcc7

OpenJDK does not build properly with GCC7. Add the same workaround that
we have for GCC6.

Without this patch:

| #
| # A fatal error has been detected by the Java Runtime Environment:
| #
| #  SIGSEGV (0xb) at pc=0x00007fcad0efcd5b, pid=17206, tid=0x00007fcab264c700
| #
| # JRE version: OpenJDK Runtime Environment (8.0_102-b14) (build 1.8.0_102-internal-b14)
| # Java VM: OpenJDK 64-Bit Server VM (25.102-b14 mixed mode linux-amd64 compressed oops)
| # Problematic frame:
| # V  [libjvm.so+0x78bd5b]  Node::Node(unsigned int)+0x2b
| #
| # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
| #
| # An error report file with more information is saved as:
| # /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/openjdk-8-native/102b14-r0/build/hs_err_pid17206.log
| [thread 140508549912320 also had an error]
|
| [error occurred during error reporting , id 0xb]
|
| #
| # If you would like to submit a bug report, please visit:
| #   http://bugreport.java.com/bugreport/crash.jsp
| #

Signed-off-by: Ricardo Ribalda Delgado <39bb74b16720293e1449e36465485b27216fbd6d@gmail.com>
Signed-off-by: Maxin B. John <4470e5a3cfbc7ff75506df1ae89969a0d8cce1df@intel.com>

rehsack/meta-java,rehsack/meta-java,rehsack/meta-java,rehsack/meta-java,rehsack/meta-java