* [Buildroot] [PATCH v2] assimp: fix m68k uclinux compile
@ 2016-07-31 18:07 Waldemar Brodkorb
2016-08-01 21:08 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-07-31 18:07 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2] assimp: fix m68k uclinux compile
2016-07-31 18:07 [Buildroot] [PATCH v2] assimp: fix m68k uclinux compile Waldemar Brodkorb
@ 2016-08-01 21:08 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-08-01 21:08 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 31 Jul 2016 20:07:43 +0200, Waldemar Brodkorb wrote:
> 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(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-01 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-31 18:07 [Buildroot] [PATCH v2] assimp: fix m68k uclinux compile Waldemar Brodkorb
2016-08-01 21:08 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox