[oe] [meta-java][PATCH v2 2/7] icedtea7-native: fix build with gcc 4.9
Khem Raj
raj.khem at gmail.com
Mon Apr 13 20:33:50 UTC 2015
On Apr 13, 2015 12:29 AM, "Sven Ebenfeld" <sven.ebenfeld at gmail.com> wrote:
>
> The stabs debug format is not supported by our toolchain. It works if we
> use gdb debug format.
Why ggdb should -g be enough?
>
> Signed-off-by: Sven Ebenfeld <sven.ebenfeld at gmail.com>
> ---
> .../icedtea-change-to-gdb-debug-format.patch | 29
++++++++++++++++++++++
> recipes-core/icedtea/openjdk-7-release-03b147.inc | 2 ++
> 2 files changed, 31 insertions(+)
> create mode 100644
recipes-core/icedtea/openjdk-7-03b147/icedtea-change-to-gdb-debug-format.patch
>
> diff --git
a/recipes-core/icedtea/openjdk-7-03b147/icedtea-change-to-gdb-debug-format.patch
b/recipes-core/icedtea/openjdk-7-03b147/icedtea-change-to-gdb-debug-format.patch
> new file mode 100644
> index 0000000..c0a3c9f
> --- /dev/null
> +++
b/recipes-core/icedtea/openjdk-7-03b147/icedtea-change-to-gdb-debug-format.patch
> @@ -0,0 +1,29 @@
> +--- openjdk/hotspot/make/linux/makefiles/gcc.make 2015-04-02
08:02:31.301728214 +0200
> ++++ openjdk/hotspot/make/linux/makefiles/gcc.make.new 2015-04-02
08:19:55.502171268 +0200
> +@@ -233,7 +233,7 @@
> + DEBUG_CFLAGS/ppc = -g
> + DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
> + ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
> +-DEBUG_CFLAGS += -gstabs
> ++DEBUG_CFLAGS += -ggdb
> + endif
> +
> + ifneq ($(OBJCOPY),)
> +@@ -244,7 +244,7 @@
> + FASTDEBUG_CFLAGS/zero = -g
> + FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
> + ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
> +- FASTDEBUG_CFLAGS += -gstabs
> ++ FASTDEBUG_CFLAGS += -ggdb
> + endif
> +
> + OPT_CFLAGS/ia64 = -g
> +@@ -254,7 +254,7 @@
> + OPT_CFLAGS/zero = -g
> + OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
> + ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
> +- OPT_CFLAGS += -gstabs
> ++ OPT_CFLAGS += -ggdb
> + endif
> + endif
> +
> diff --git a/recipes-core/icedtea/openjdk-7-release-03b147.inc
b/recipes-core/icedtea/openjdk-7-release-03b147.inc
> index 47813cd..01e7a3d 100644
> --- a/recipes-core/icedtea/openjdk-7-release-03b147.inc
> +++ b/recipes-core/icedtea/openjdk-7-release-03b147.inc
> @@ -81,6 +81,7 @@ OPENJDK_PATCHES = " \
> file://icedtea-jdk-sane-x86-arch.patch;apply=no \
> file://icedtea-flags.patch;apply=no \
>
file://icedtea-openjdk-remove-currency-data-generation-expi.patch;apply=no \
> + file://icedtea-change-to-gdb-debug-format.patch;apply=no \
> "
>
> export DISTRIBUTION_PATCHES = " \
> @@ -91,4 +92,5 @@ export DISTRIBUTION_PATCHES = " \
> patches/icedtea-jdk-sane-x86-arch.patch \
> patches/icedtea-flags.patch \
>
patches/icedtea-openjdk-remove-currency-data-generation-expi.patch \
> + patches/icedtea-change-to-gdb-debug-format.patch \
> "
> --
> 1.8.1.rc3
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list