Index: tools/CMakeLists.txt =================================================================== --- tools/CMakeLists.txt +++ tools/CMakeLists.txt @@ -25,7 +25,7 @@ set(LLVM_TOOL_LLVM_JITLISTENER_BUILD Off) endif() -if(CYGWIN) +if(CYGWIN OR NOT LLVM_ENABLE_PIC) set(LLVM_TOOL_LTO_BUILD Off) set(LLVM_TOOL_LLVM_LTO_BUILD Off) endif()