aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-14 19:02:13 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-05-15 14:20:08 +0200
commit79c6dc13328ff0097cc6b4d52985c472da870e81 (patch)
tree4d1f039e6b0510df92a3775dcac7195c6eef839d
parentb80dbd4f56d911f0c0a5a004afc5d739d0bf8ad9 (diff)
downloadbuildroot-79c6dc13328ff0097cc6b4d52985c472da870e81.tar.gz
buildroot-79c6dc13328ff0097cc6b4d52985c472da870e81.tar.bz2
package/libtorrent-rasterbar: fix build on m68k_cf
An internal compiler error is raised on m68k_cf at dwarf2cfi.c:2802 in connect_traces. Error can be fixed by adding -fno-defer-pop, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864 Fixes: - http://autobuild.buildroot.org/results/746f60fadb40288341c1e5642cfcf6373b70583a Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libtorrent-rasterbar/libtorrent-rasterbar.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/libtorrent-rasterbar/libtorrent-rasterbar.mk b/package/libtorrent-rasterbar/libtorrent-rasterbar.mk
index fdcc736b47..012e972f1d 100644
--- a/package/libtorrent-rasterbar/libtorrent-rasterbar.mk
+++ b/package/libtorrent-rasterbar/libtorrent-rasterbar.mk
@@ -13,7 +13,15 @@ LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES
LIBTORRENT_RASTERBAR_CONF_OPTS = \
--with-boost-libdir=$(STAGING_DIR)/usr/lib \
--disable-invariant-checks
-LIBTORRENT_RASTERBAR_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
+LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS) -std=c++11
+
+# Internal error, aborting at dwarf2cfi.c:2802 in connect_traces
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864
+ifeq ($(BR2_m68k_cf),y)
+LIBTORRENT_RASTERBAR_CXXFLAGS += -fno-defer-pop
+endif
+
+LIBTORRENT_RASTERBAR_CONF_OPTS += CXXFLAGS="$(LIBTORRENT_RASTERBAR_CXXFLAGS)"
ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
LIBTORRENT_RASTERBAR_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)