From 0084d1c56775cbb721fe480e13e3c13fc0944d4b Mon Sep 17 00:00:00 2001 From: Tim Howard Date: Sat, 14 Jun 2014 11:34:40 -0400 Subject: [PATCH] Support position independent code, specifically 64-bit compiling with shared library --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c1d8e92d..d9396937e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ endif() # Set compiler specific flags #-------------------------------------------------------------------- if (UNIX) - add_definitions(-Wall) + add_definitions(-Wall -fPIC) if (BUILD_SHARED_LIBS) add_definitions(-fvisibility=hidden)