From 85a30e73a5895fcfafc82f78e003d06fda867584 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 14 Jun 2018 15:30:55 +0000 Subject: [PATCH] Fixed -lpthread linker option position --- test/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index ef10343..b30859a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,6 +1,8 @@ CC = clang++ -CFLAGS = -O0 -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE -I.. -I. -Wall -Wextra -lpthread +#CC = g++ + +CFLAGS = -O0 -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE -I.. -I. -Wall -Wextra OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz @@ -8,7 +10,7 @@ all : test ./test test : test.cc ../httplib.h Makefile - $(CC) -o test $(CFLAGS) test.cc gtest/gtest-all.cc gtest/gtest_main.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) + $(CC) -o test $(CFLAGS) test.cc gtest/gtest-all.cc gtest/gtest_main.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) -lpthread pem: openssl genrsa 2048 > key.pem