From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Tue, 20 Aug 2019 21:20:59 +0200 Subject: [Buildroot] [git commit branch/2019.02.x] package/proj: fix build failure due to gcc bug 68485 Message-ID: <20190820191815.4A64983C56@busybox.osuosl.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net commit: https://git.buildroot.net/buildroot/commit/?id=dfced0ad88dbcb6e2120ea58623a5453f8dc123e branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x The proj package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y. Fixes: http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/ Signed-off-by: Giulio Benetti Tested-by: Zoltan Gyarmati Acked-by: Zoltan Gyarmati Signed-off-by: Peter Korsgaard (cherry picked from commit c99665cde7e47e6eee0aa6ced2d5fed92f716a51) Signed-off-by: Peter Korsgaard --- package/proj/proj.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/proj/proj.mk b/package/proj/proj.mk index 0b239b2bbe..2969eb57ac 100644 --- a/package/proj/proj.mk +++ b/package/proj/proj.mk @@ -10,4 +10,12 @@ PROJ_LICENSE = MIT PROJ_LICENSE_FILES = COPYING PROJ_INSTALL_STAGING = YES +PROJ_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +PROJ_CFLAGS += -O0 +endif + +PROJ_CONF_ENV = CFLAGS="$(PROJ_CFLAGS)" + $(eval $(autotools-package))