JieweiWei / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

pthread m4 script problem #336

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. export LDFLAGS="-Wl,--as-needed"
2. ./configure
3. make

What is the expected output? What do you see instead?

Fails to link because of missing -lpthread in linker. 
Build logs and patch to fix the issue are here:

What version of Google Test are you using? On what operating system?
1.5

Please provide any additional information below, such as a code snippet.
This is found in a protobuf bug:
http://code.google.com/p/protobuf/issues/detail?id=188

It turns out there's some typo in acx_pthread.m4.
Please take a look at the patch.
Corresponding fix in protobuf at 
http://codereview.appspot.com/3400041/diff/1/m4/acx_pthread.m4#newcode275

Original issue reported on code.google.com by liujisi@google.com on 2 Dec 2010 at 7:30

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm, the patch is not correct, please ignore this issue.

Original comment by liujisi@google.com on 9 Dec 2010 at 1:53

GoogleCodeExporter commented 9 years ago
Closed per the reporter's comment.

Original comment by w...@google.com on 14 Dec 2010 at 11:37