citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 7c6e5b2578dc40bb689c2723751edf326fa4b3a0
parent a5571ce8fd85ddf20f518a29fd8bf90460fba281
Author: Kyle Milz <kyle@0x30.net>
Date:   Wed, 29 Jun 2016 00:36:33 -0600

src: osx doesn't need -pthread added

Diffstat:
Msrc/inst_main.cc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/inst_main.cc b/src/inst_main.cc @@ -149,8 +149,10 @@ restore_original_src(std::map<std::string, std::string> const &temp_file_map) void patch_link_command(std::vector<char *> &args) { - // libcitrun.a needs pthread but is static and doesn't include it itself + // libcitrun.a uses pthread so we must link it here, except osx. +#ifndef __APPLE__ args.push_back(const_cast<char *>("-pthread")); +#endif char *lib_str; if ((lib_str = getenv("CITRUN_LIB")) == NULL)