-fPIC compile option added
authorTyutyunkov Vyacheslav <tve@softmotions.com>
Fri, 20 Mar 2015 11:43:50 +0000 (17:43 +0600)
committerTyutyunkov Vyacheslav <tve@softmotions.com>
Fri, 20 Mar 2015 11:44:10 +0000 (17:44 +0600)
src/CMakeLists.txt

index a7eef76..c215678 100644 (file)
@@ -157,7 +157,7 @@ include_directories(${EJDB_INCLUDE_DIRS})
 target_link_libraries(ejdb ${EJDB_LLIBRARIES})
 target_link_libraries(ejdb_p ${EJDB_LLIBRARIES})
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -fsigned-char -pedantic -Wfatal-errors")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -fsigned-char -pedantic -Wfatal-errors -fPIC")
 set(CMAKE_C_FLAGS_DEBUG "-O0 -g -Werror -DDEBUG -D_DEBUG -UNDEBUG")
 set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
 set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} -g")