Thread (23 messages) 23 messages, 6 authors, 2021-12-30

Re: [Buildroot] [PATCH v2 2/3] package/protobuf: fix build failure due to missing -mcmodel=large

From: Maxim Kochetkov <hidden>
Date: 2021-07-27 04:24:52

27.07.2021 01:34, Giulio Benetti wrote:
quoted hunk ↗ jump to hunk
When building protobuf for or1k -mcmodel=large is needed to link, so let's
add that gcc option in case we're building for or1k.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
  package/protobuf/protobuf.mk | 4 ++++
  1 file changed, 4 insertions(+)
diff --git a/package/protobuf/protobuf.mk b/package/protobuf/protobuf.mk
index 492917c5e8..75791fade2 100644
--- a/package/protobuf/protobuf.mk
+++ b/package/protobuf/protobuf.mk
@@ -24,6 +24,10 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
  PROTOBUF_CXXFLAGS += -O0
  endif
  
+ifeq ($(BR2_or1k),y)
+PROTOBUF_CXXFLAGS += -mcmodel=large
+endif
+
  PROTOBUF_CONF_ENV = CXXFLAGS="$(PROTOBUF_CXXFLAGS)"
  
  ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
Reviewed-by: Maxim Kochetkov <redacted>
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help