ld -shared does not search for libraries in /usr/lib

Bug #604134 reported by Khem Raj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: binutils

Try this example with latest maverick

gcc -c -o a.o -fPIC -x c /dev/null

ld -shared a.o -lc

ld: cannot find -lc

This use to link successfully and works ok on Lucid. It started happening with latest update so I believe it could be one of the following

binutils (2.20.51.20100710-1ubuntu1) maverick; urgency=low

  * Update HJ patches from binutils 2.20.51.0.10.

 -- Matthias Klose <email address hidden> Sat, 10 Jul 2010 11:42:27 +0200

binutils (2.20.51.20100710-1) experimental; urgency=low

  * Snapshot, taken from the trunk 20100710.
    - Fix PR gas/10531. LP: #599485.
  * debian/rules: Introduce PF macros (Jim Heck). Closes: #588357.

  [ Marcin Juszkiewicz ]
  * Don't install documentation files in -cross packages. Closes: #586636.
  * Set sysroot to /usr/$(TARGET) for cross builds. LP: #598389.

 -- Matthias Klose <email address hidden> Sat, 10 Jul 2010 10:42:55 +0200

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package binutils - 2.20.51.20100710-1ubuntu2

---------------
binutils (2.20.51.20100710-1ubuntu2) maverick; urgency=low

  * Don't use configury for cross builds for native builds. LP: #604134.
 -- Matthias Klose <email address hidden> Sun, 11 Jul 2010 10:15:01 +0200

Changed in binutils (Ubuntu):
status: New → 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.