This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch hotfix/#157-build-etcdlib-issues
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to
refs/heads/hotfix/#157-build-etcdlib-issues by this push:
new d5eabf9 #157 Adds -pthread flag for etcdlib
d5eabf9 is described below
commit d5eabf9e55de9f08fe1b6f1e75bd68e7dc752933
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sat Feb 29 15:38:22 2020 +0100
#157 Adds -pthread flag for etcdlib
---
libs/etcdlib/CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libs/etcdlib/CMakeLists.txt b/libs/etcdlib/CMakeLists.txt
index 0d08790..e401239 100644
--- a/libs/etcdlib/CMakeLists.txt
+++ b/libs/etcdlib/CMakeLists.txt
@@ -30,8 +30,9 @@ if (NOT COMMAND celix_subproject)
include(GNUInstallDirs)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
- set(CMAKE_C_FLAGS "-pthread -D_GNU_SOURCE -std=gnu99 ${CMAKE_C_FLAGS}")
+ set(CMAKE_C_FLAGS "-fpthread -D_GNU_SOURCE -std=gnu99 ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
+ set(CMAKE_EXE_LINKER_FLAGS "-pthread ${CMAKE_EXE_LINKER_FLAGS}")
set(ETCDLIB_CMP ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
else()