--- tpool/CMakeLists.txt.orig 2020-06-23 15:10:18 UTC +++ tpool/CMakeLists.txt @@ -2,6 +2,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) IF(WIN32) SET(EXTRA_SOURCES tpool_win.cc aio_win.cc) ELSE() + ADD_DEFINITIONS(-fPIC) SET(EXTRA_SOURCES aio_linux.cc) ENDIF() @@ -26,4 +27,4 @@ ADD_LIBRARY(tpool STATIC ${EXTRA_SOURCES} ) -INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include) \ No newline at end of file +INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)