From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] assimp: fix m68k uclinux compile
Date: Sun, 31 Jul 2016 20:07:43 +0200 [thread overview]
Message-ID: <20160731180743.GA1487@waldemar-brodkorb.de> (raw)
The GCC manual suggest when getting:
relocation truncated to fit: R_68K_GOT16O foobar
to use -mxgot.
https://gcc.gnu.org/onlinedocs/gcc/M680x0-Options.html
Fixes:
http://autobuild.buildroot.net/results/63898c00929b4546279bda52148b218f847714ed/
http://autobuild.buildroot.net/results/bb7a107d1ca6e8713e6ccffe6c61c43b777fb962/
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
package/assimp/assimp.mk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/package/assimp/assimp.mk b/package/assimp/assimp.mk
index fd556e5..cda02dd 100644
--- a/package/assimp/assimp.mk
+++ b/package/assimp/assimp.mk
@@ -11,6 +11,11 @@ ASSIMP_LICENSE_FILES = LICENSE
ASSIMP_DEPENDENCIES = zlib
ASSIMP_INSTALL_STAGING = YES
-ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF
+# relocation truncated to fit: R_68K_GOT16O
+ifeq ($(BR2_m68k),y)
+ASSIMP_CXXFLAGS += -mxgot
+endif
+
+ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)"
$(eval $(cmake-package))
--
1.7.10.4
next reply other threads:[~2016-07-31 18:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-31 18:07 Waldemar Brodkorb [this message]
2016-08-01 21:08 ` [Buildroot] [PATCH v2] assimp: fix m68k uclinux compile Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160731180743.GA1487@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox