Use "-pthread" when compiling as well as when linking. As per the gcc(1) manual page: "This option sets flags for both the preprocessor and linker." In practice, that means -D_REENTRANT and -lpthread, respectively, or the equivalent flags for the platform. Change-Id: I8cda318f00f0a9c9111bf07780298a41720a7229 Reviewed-on: https://code-review.googlesource.com/3941 Reviewed-by: Stefano Rivera <stefano@rivera.za.net> Reviewed-by: Paul Wankadia <junyer@google.com> 
4 files changed