From a909eb6b235bfa5a09f93a0f68cb8f3ab818cf57 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 16 Feb 2016 14:09:10 +0100 Subject: [PATCH] cmake: fix linking http-parser into shared libs --- third-party/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index de5243a1..f89dc525 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -3,6 +3,8 @@ if(ENABLE_THIRD_PARTY) http-parser/http_parser.c ) add_library(http-parser OBJECT ${LIBHTTP_PARSER_SOURCES}) + set_target_properties(http-parser PROPERTIES + POSITION_INDEPENDENT_CODE ON) if(HAVE_NEVERBLEED) set(NEVERBLEED_SOURCES