commit | b59ac43b9d1122da3d00882efa7c5d6833c06ea7 | [log] [tgz] |
---|---|---|
author | Alex Stewart <alexs.mac@gmail.com> | Wed Feb 27 09:10:19 2013 +0000 |
committer | Alex Stewart <alexs.mac@gmail.com> | Wed Feb 27 09:13:41 2013 +0000 |
tree | ac106013f0c5d62e82a51ffe097d00179c200913 | |
parent | 6fb1024ed5b197da261f71d1bb02716661da2fff [diff] |
Issue 83 fix: use correct pthread linker flags with clang. 1. -lpthreads was previously added to the CMAKE_CXX_FLAGS which are not passed to the linker thus linking would fail. 2. Clang would emit a warning about -lpthreads being added to a build instruction with -c (compile only). This patch fixes both of these issues by adding -lpthreads to the linker flags (and removes them from the CXX flags). Change-Id: I5e54de3ab7eced177aa31f311926893598af5b56