Comment #1 on issue 188 by xarthisius.kk: protobuf fails to link after compiling with LDFLAGS="-Wl,--as-needed" because of missing -lpthread
http://code.google.com/p/protobuf/issues/detail?id=188

To be exact: macro in acx_pthread.m4 searches for flags providing threads deps in a
following order:
... -pthread ... -lpthread
and is satisfied with whatever works first. As a result it settles with -pthread. It's error prone because -pthread is treated as CFLAG, and is not passed during
linking phase.
Switching order to:
... -lpthread ... -pthread
adds -lpthread to LIBS instead, which is properly used during linking.
Best regards,
Kacper Kowalik

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to