Flag -pthread on compilation

9 views
Skip to first unread message

Rafael Vargas

unread,
Oct 27, 2014, 1:14:15 PM10/27/14
to Crypto++ Users
Hello all,

I'm a (fairly) long time Crypto++ user and I'm not having any problems compiling nor anything, but...

I have been inspecting our build files and noticed that the -pthread flag is only applied when linking the libraries as it is only added to LDFLAGS, making the linker link to the pthread libraries

Shouldn't it be added to CXXFLAGS also? As the -pthread flag defines -D_REENTRANT in the preprocessor.

Could this be related to some libc concurrency problems?

--
Rafael Vargas
Reply all
Reply to author
Forward
0 new messages