Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371657 - dev-libs/boost: enable long double on mips depending on ABI
Summary: dev-libs/boost: enable long double on mips depending on ABI
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 21:37 UTC by Matt Turner
Modified: 2011-07-15 16:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
boost-long-double.patch (boost-long-double.patch,560 bytes, patch)
2011-07-08 00:47 UTC, Matt Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2011-06-14 21:37:12 UTC
MIPS has 3 ABIs. One, o32, doesn't support long double. The other two, n32 and n64, do support long double.

There's a check in the boost ebuilds:

# https://svn.boost.org/trac/boost/attachment/ticket/2597/add-disable-long-double.patch
if use sparc || use mips || use hppa || use arm || use x86-fbsd || use sh; then
   OPTIONS="${OPTIONS} --disable-long-double"
fi

It'd be better if we checked which ABI we're using, and only turned off long double for o32.

I'll figure out how to do this and get back to you with a patch.
Comment 1 Matt Turner gentoo-dev 2011-07-08 00:47:53 UTC
Created attachment 279389 [details, diff]
boost-long-double.patch

Patch to disable long double only on MIPS o32 (Enables long double for n32 and n64).

Since it only affects mips, I'll just commit it in a week or two if there's no response.
Comment 2 Matt Turner gentoo-dev 2011-07-15 16:27:51 UTC
Committed.