diff options
author | Daniel McGregor <daniel.mcgregor@vecima.com> | 2016-06-22 10:38:45 -0600 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-06-30 12:07:44 -0300 |
commit | 33ddb28a6428b02ddcc82d1954ecf27cd426fbb5 (patch) | |
tree | eb39d51b3b35a2a3096bfd79ca95e2179dd0be8c /recipes-core/openjdk/openjdk-8-common.inc | |
parent | 6483010d92be7f6e1e0a268d1ca4b5fc4353c70e (diff) | |
download | meta-java-33ddb28a6428b02ddcc82d1954ecf27cd426fbb5.tar.gz |
openjdk-8: make GCC6 happy
GCC 6 sets the default C++ standard to C++14 and introduces dead store
elimination by default. OpenJDK 8 is not ready for either of these
changes, so set the C++ standard back to gnu++98 and disable dead
store elimination.
Switched to using --with-extra-cflags, cxxflags, and ldflags. The added
patch fixes building when using those flags, and are needed to get
CFLAGS into the JDK build in the native case.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-common.inc')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc index 70bd40c..dd3d397 100644 --- a/recipes-core/openjdk/openjdk-8-common.inc +++ b/recipes-core/openjdk/openjdk-8-common.inc | |||
@@ -236,3 +236,7 @@ EXTRA_OECONF_append = "\ | |||
236 | --with-build-number=${OPENJDK_BUILD_NUMBER} \ | 236 | --with-build-number=${OPENJDK_BUILD_NUMBER} \ |
237 | --with-update-version=${OPENJDK_UPDATE_VERSION} \ | 237 | --with-update-version=${OPENJDK_UPDATE_VERSION} \ |
238 | " | 238 | " |
239 | |||
240 | CFLAGS_append = " -fno-lifetime-dse -fno-delete-null-pointer-checks" | ||
241 | CXXFLAGS_append = " -fno-lifetime-dse -fno-delete-null-pointer-checks" | ||
242 | CXX_append = " -std=gnu++98" | ||