Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334659 - dev-libs/boost is built as non-PIC on amd64
Summary: dev-libs/boost is built as non-PIC on amd64
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-26 14:59 UTC by Moritz Moeller
Modified: 2012-10-31 16:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Moeller 2010-08-26 14:59:38 UTC
To statically link against any lib on amd64 it must have been built with -fPIC. I do software development on Gentoo and the software must have as little library deps as possible when being shipped.
So I do link boost statically (this saves a lot of space too as the linker only embeds used symbols).
To do this on amd64 I must patch the boost ebuild to add the resp flag. I'd love to see this being added to the ebuild upstream.

Reproducible: Always

Steps to Reproduce:
Comment 1 Moritz Moeller 2010-08-26 15:01:06 UTC
I add this to src_configure():

  if use amd64 ; then
      append-flags -fPIC
  fi;
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-31 16:54:32 UTC
All static libraries for amd64 are built non-PIC, only shared objects are built PIC.