Skip to content

Commit

Permalink
Fix GMOCK_LDADD flags
Browse files Browse the repository at this point in the history
gmock and gtest uses threads and -lpthread flag was missing
when trying to detect gmock and gtest presence manually
  • Loading branch information
vigsterkr committed Aug 16, 2012
1 parent f28f0ee commit 6a96d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configure
Expand Up @@ -523,7 +523,7 @@ int main(int argc, char** argv)
}
EOF

GMOCK_LDADD="-lgmock -lgtest"
GMOCK_LDADD="-lgmock -lgtest -lpthread -D_THREAD_SAFE"
if test "$_gmock" = yes || test "$_gmock" = auto
then
if $GMOCK --version > /dev/null 2>&1
Expand Down

0 comments on commit 6a96d7e

Please sign in to comment.