since 11.10 shared libraries must be placed after the objects needing their
symbols (as it was always the case with static libraries)
this due to the linker flag --as-needed being default now
this works:
gcc pthread_test.c -lpthread -o test
and so does this:
gcc -pthread pthread_test.c -o test
** Changed in: gcc-defaults (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1001618
Title:
gcc link step fails against -lpthread and -ldl
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1001618/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs