Support position independent code, specifically 64-bit compiling with shared library

This commit is contained in:
Tim Howard 2014-06-14 11:34:40 -04:00
parent 20b7ac0518
commit 0084d1c567

View File

@ -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)