boost: Force the target ABI for MIPS architecture
PATCH 1/1 boost: Force the target ABI for MIPS architecture
The default ABI used in boost is 'sysv' which is not valid for MIPS. Given the boost build system doesn't detect the right ABI when we are cross-compiling, we fix this by passing the right ABI directly to the boost options for the target.
Related:
https://svn.boost.org/trac/boost/ticket/10442
Fixes:
http://autobuild.buildroot.net/results/79f/79fe4caffb9a3b9f1b203498a589a5172bd0acea/
--- package/boost/boost.mk | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
package/boost/boost.mk +1 -0
@@ -82,6 +82,7 @@ HOST_BOOST_OPT += toolset=gcc threading=multi variant=release link=shared \ BOOST_OPT += toolset=gcc \ threading=multi \ + abi=$(if $(BR2_MIPS_OABI32),o32,sysv) \ variant=$(if $(BR2_ENABLE_DEBUG),debug,release) \ link=$(if $(BR2_PREFER_STATIC_LIB),static,shared) \ runtime-link=$(if $(BR2_PREFER_STATIC_LIB),static,shared)
Signature · 1 line
1.7.1
PATCH 1/1 boost: Force the target ABI for MIPS architecture
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Vicente" == Vicente Olivert Riera <[email protected]> writes:
The default ABI used in boost is 'sysv' which is not valid for MIPS. Given the boost build system doesn't detect the right ABI when we are cross-compiling, we fix this by passing the right ABI directly to the boost options for the target.
Quoted 7 lines
Related:
https://svn.boost.org/trac/boost/ticket/10442Fixes:
http://autobuild.buildroot.net/results/79f/79fe4caffb9a3b9f1b203498a589a5172bd0acea/Signed-off-by Vicente Olivert Riera <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 boost: Force the target ABI for MIPS architecture
In reply to Vicente Olivert RieraDear Vicente Olivert Riera,
package/boost/boost.mk HOST_BOOST_OPT += toolset=gcc threading=multi variant=release link=shared \ · line 85
Quoted 1 line · Vicente Olivert Riera
package/boost/boost.mk +1
-0+ abi=$(if $(BR2_MIPS_OABI32),o32,sysv) \
Are you sure this is sufficient to handle MIPS in Boost? Reading the Boost code, I see that it also supports abi=n64 and abi=n32. Maybe you should have a look and see if additional cases of ABIs are needed.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com