From c67bd1d54e518bb9f4ecef97962100eb41dbac42 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 22 Feb 2016 20:45:46 +0100 Subject: Link `ld.so` via the build system instead of raw compiler flags --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f92c549..91c7500 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(ChangeLog) set( CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -std=c++14 -W -Wall -Wextra -Winline -ldl -fPIC" + "${CMAKE_CXX_FLAGS} -std=c++14 -W -Wall -Wextra -Winline -fPIC" ) include_directories( @@ -24,6 +24,7 @@ add_library( target_link_libraries( ChangeLog + dl boost_system boost_filesystem ) -- cgit v1.2.3