From: Vsevolod Stakhov Date: Tue, 24 Sep 2013 12:55:47 +0000 (+0100) Subject: Revert PIC change, as it is required for compiling. X-Git-Tag: 0.6.0~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93de67cb66f3c4e4547ad616462a53d5957ab1e6;p=thirdparty%2Frspamd.git Revert PIC change, as it is required for compiling. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7567920895..2753d0a9d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -831,12 +831,8 @@ ENDIF(SUPPORT_STD_FLAG) CHECK_C_COMPILER_FLAG(-fPIC SUPPORT_FPIC) IF(SUPPORT_FPIC) - SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_C_FLAGS} -fPIC") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") ENDIF(SUPPORT_FPIC) -CHECK_C_COMPILER_FLAG(-fpic SUPPORT_Fpic) -IF(SUPPORT_Fpic) - SET(CMAKE_EXE_LINKER_FLAGS"${CMAKE_C_FLAGS} -fpic") -ENDIF(SUPPORT_Fpic) # Optimization flags IF(NOT CMAKE_C_OPT_FLAGS)