After upgrading binutils to 2.20.51.20100710-2 from experimental, the
problem goes away:

    $ g++ -v 2>&1 | grep "gcc version"
    gcc version 4.4.4 (Debian 4.4.4-7)
    $ ld -v
    GNU ld (GNU Binutils for Debian) 2.20.51-system.20100710
    $ make
    g++ -Wl,-no-add-needed -shared -o lpthread.so -lpthread
    g++ -Wl,-no-add-needed -o deb591405 deb591405.cpp lpthread.so
    $ LD_LIBRARY_PATH=`pwd` ./deb591405
    I hope Debian bug #591405 has been fixed!


So in fact this seems to be linker issue.



-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100806161146.ga24...@roro3.zxlink

Reply via email to