From 79d621afbe6d4cf1a9b36a6167c1b4304b263ee0 Mon Sep 17 00:00:00 2001 From: derek Date: Fri, 22 Apr 2011 14:40:36 -0400 Subject: [PATCH] Additional attempt to force -fPIC on CentOS --- src/api/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/CMakeLists.txt b/src/api/CMakeLists.txt index ecfc37a..9ba9963 100644 --- a/src/api/CMakeLists.txt +++ b/src/api/CMakeLists.txt @@ -10,6 +10,7 @@ include_directories( ${BamTools_SOURCE_DIR}/src ) # add compiler definitions add_definitions( -DBAMTOOLS_API_LIBRARY ) # (for proper exporting of library symbols) +add_definitions( -fPIC ) # (attempt to force PIC compiling on some archs) # list of all BamTools API source (.cpp) files set( BamToolsAPISources -- 2.39.2