Repository: celix Updated Branches: refs/heads/develop 1010f7126 -> e0a51953f
CELIX-159: Added -pthread flag. Among other things, this will define _REENTRANT. Project: http://git-wip-us.apache.org/repos/asf/celix/repo Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/5e6d2f2c Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/5e6d2f2c Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/5e6d2f2c Branch: refs/heads/develop Commit: 5e6d2f2c374b3c8d738e167c492a541042ea257f Parents: 1010f71 Author: Pepijn Noltes <[email protected]> Authored: Tue Sep 1 16:00:13 2015 +0200 Committer: Pepijn Noltes <[email protected]> Committed: Tue Sep 1 16:04:43 2015 +0200 ---------------------------------------------------------------------- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/celix/blob/5e6d2f2c/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bee365..a885df5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,8 @@ set(CMAKE_INSTALL_NAME_DIR "@rpath") SET(CMAKE_BUILD_TYPE "Debug") IF(UNIX) - SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall ${CMAKE_C_FLAGS}") + SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall -pthread ${CMAKE_C_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "-pthread ${CMAKE_EXE_LINKER_FLAGS}") ENDIF() IF(WIN32) SET(CMAKE_C_FLAGS "-D_CRT_SECURE_NO_WARNINGS ${CMAKE_C_FLAGS}")
