diff -r 09115096c7d6 -r 3694d354289e CMakeLists.txt --- a/CMakeLists.txt Fri Jul 12 08:21:25 2013 +0200 +++ b/CMakeLists.txt Tue Jul 16 11:14:03 2013 +0200 @@ -72,13 +72,13 @@ include(${CMAKE_MODULE_PATH}/compilerchecks.cmake) #set default compiler flags -add_flag_append(CMAKE_C_FLAGS "-Wall -pipe") +add_flag_append(CMAKE_C_FLAGS "-Wall -pipe -fPIC") add_flag_append(CMAKE_C_FLAGS_RELEASE "-Os") add_flag_append(CMAKE_C_FLAGS_DEBUG "-Wextra -O0") -add_flag_append(CMAKE_CXX_FLAGS "-Wall -pipe") +add_flag_append(CMAKE_CXX_FLAGS "-Wall -pipe -fPIC") add_flag_append(CMAKE_CXX_FLAGS_RELEASE "-Os") add_flag_append(CMAKE_CXX_FLAGS_DEBUG "-Wextra -O0") -add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000") +add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000 -fPIC") add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-O- -gv") add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Os -Xs")