stransky / berusky2

Berusky 2 (Bugs Escape 3D) is a game that challenges your visual/spatial thinking and ability to find a way to resolve a logic task. Using five bugs, you'll go through an adventure full of various puzzles spread across nine episodes. Individual episodes differ in appearance and difficulty, which increases throughout the game.
http://anakreon.cz/en/Berusky2.htm
GNU General Public License v3.0
14 stars 3 forks source link

Please explicitly link against -lpthread #23

Closed apoleon closed 11 years ago

apoleon commented 11 years ago

Hello,

I'm filing a new bug report because this is not a Debian specific issue and also affects Fedora and other distributions.

It seems you use an older version of Fedora where ld allows the user to link indirectly against needed libraries. This behaviour is changing now:

https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

You can also learn more about this issue here:

https://wiki.debian.org/ToolChain/DSOLinking#Not_resolving_symbols_in_indirect_dependent_shared_libraries

So in short -lpthread needs to be linked in explictly in the linker stage. I'm attaching a patch that solves the problem.

https://gist.github.com/apoleon/7305027