From 2c5e0b8b981dc9d1ea575037b9befa8c3b6102b8 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Sun, 9 Jan 2011 14:34:39 +0000 Subject: Rewrite handling of LLVM_ENABLE_PIC. It was being processed after config.h was generated, so it had no effect on it. Thanks to arrowdodger for pointing out this and a tentative patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123119 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cmake') diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 27f2964..f0e1176 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -162,12 +162,9 @@ llvm_find_program(dotty) # Define LLVM_MULTITHREADED if gcc atomic builtins exists. include(CheckAtomic) +set(ENABLE_PIC ${LLVM_ENABLE_PIC}) + include(CheckCXXCompilerFlag) -# On windows all code is position-independent and mingw warns if -fPIC -# is in the command-line. -if( NOT WIN32 ) - check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG) -endif() check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG) -- cgit v1.1