summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyutyunkov Vyacheslav <tve@softmotions.com>2015-03-20 17:43:50 +0600
committerTyutyunkov Vyacheslav <tve@softmotions.com>2015-03-20 17:44:10 +0600
commit9d2cc910cfa8a924a46acba0600ba247d04579bc (patch)
tree46455a3ad678e6ff3d616b00e0ecf682a743ab82
parentf2727399e99a5f36b5b4e113e4c53d4e60d52406 (diff)
downloadejdb-9d2cc910cfa8a924a46acba0600ba247d04579bc.tar.gz
ejdb-9d2cc910cfa8a924a46acba0600ba247d04579bc.tar.bz2
ejdb-9d2cc910cfa8a924a46acba0600ba247d04579bc.zip
-fPIC compile option added
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a7eef76..c215678 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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")