| 
					
				 | 
			
			
				@@ -513,16 +513,16 @@ IF (CMAKE_BUILD_TYPE STREQUAL "Release") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ENDIF (CMAKE_SYSTEM_NAME MATCHES "Darwin") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   ENDIF (CMAKE_COMPILER_IS_GNUCXX) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    # Use of -O4 requires use of gold linker & LLVM-gold plugin, which might 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Use of -flto requires use of gold linker & LLVM-gold plugin, which might 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # well not be present / in use and without which files will compile, but 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # not link ('file not recognized') so explicitly check for support 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     INCLUDE(CheckCXXCompilerFlag) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    CHECK_CXX_COMPILER_FLAG("-O4" HAVE_LTO_SUPPORT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CHECK_CXX_COMPILER_FLAG("-flto" HAVE_LTO_SUPPORT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     IF (HAVE_LTO_SUPPORT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      MESSAGE(STATUS "Enabling link-time optimization (-O4)") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      SET(CERES_CXX_FLAGS "${CERES_CXX_FLAGS} -O4") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      MESSAGE(STATUS "Enabling link-time optimization (-flto)") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      SET(CERES_CXX_FLAGS "${CERES_CXX_FLAGS} -flto") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ELSE () 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      MESSAGE(STATUS "Compiler/linker does not support link-time optimization (-O4), disabling.") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      MESSAGE(STATUS "Compiler/linker does not support link-time optimization (-flto), disabling.") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ENDIF (HAVE_LTO_SUPPORT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   ENDIF () 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ENDIF (CMAKE_BUILD_TYPE STREQUAL "Release") 
			 |