set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
endif()
- if(NOT CMAKE_SYSTEM_NAME MATCHES AIX)
+ if(NOT CMAKE_SYSTEM_NAME MATCHES AIX AND NOT CMAKE_SYSTEM_NAME MATCHES OpenBSD)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
endif()
} else if (m_State == HttpRequestBody) {
if (Headers->Get("transfer-encoding") == "chunked") {
if (!m_ChunkContext)
- m_ChunkContext = boost::make_shared<ChunkReadContext>(src);
+ m_ChunkContext = boost::make_shared<ChunkReadContext>(boost::ref(src));
char *data;
size_t size;
} else if (m_State == HttpResponseBody) {
if (Headers->Get("transfer-encoding") == "chunked") {
if (!m_ChunkContext)
- m_ChunkContext = boost::make_shared<ChunkReadContext>(src);
+ m_ChunkContext = boost::make_shared<ChunkReadContext>(boost::ref(src));
char *data;
size_t size;