Browse Source

Added -lpthread

yhirose 8 years ago
parent
commit
7a87dd1039
2 changed files with 2 additions and 2 deletions
  1. 1 1
      example/Makefile
  2. 1 1
      test/Makefile

+ 1 - 1
example/Makefile

@@ -1,6 +1,6 @@
 
 CC = clang++
-CFLAGS = -std=c++14 -I.. -Wall -Wextra
+CFLAGS = -std=c++14 -I.. -Wall -Wextra -lpthread
 #OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto
 
 all: server client hello simplesvr benchmark

+ 1 - 1
test/Makefile

@@ -1,6 +1,6 @@
 
 CC = clang++
-CFLAGS = -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE -I.. -I. -Wall -Wextra
+CFLAGS = -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE -I.. -I. -Wall -Wextra -lpthread
 #OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto
 
 all : test