Install PIC version of libiberty.a

Bug #50512 reported by Drew Hess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
Wishlist
Unassigned
Declined for Feisty by Matthias Klose
Declined for Gutsy by Matthias Klose

Bug Description

Binary package hint: binutils-dev

It would be nice if binutils-dev installed the PIC version of libiberty.a, at least on architectures where PIC matters (e.g., amd64). Trying to link libiberty.a into a shared library on amd64 results in the following error:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libiberty.a(cplus-dem.o): relocation R_X86_64_32S against `_sch_istable' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libiberty.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

Matthias Klose (doko)
Changed in binutils:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

binutils (2.18.1~cvs20071027-1ubuntu2) hardy; urgency=low

  * Do not include static libraries in the multiarch package.
  * Install a libiberty compiled with -fPIC as libiberty_pic.a.
    LP: #50512.
  * Don't include /usr/lib64 for in cross packages. Closes: #450429.

 -- Matthias Klose <email address hidden> Fri, 23 Nov 2007 12:14:31 +0000

Changed in binutils:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.