ld -shared does not search for libraries in /usr/lib
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.
* 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.
* 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
This bug was fixed in the package binutils - 2.20.51. 20100710- 1ubuntu2
--------------- 20100710- 1ubuntu2) maverick; urgency=low
binutils (2.20.51.
* 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