(svn r21661) -Codechange: use -fwhole-program when linking in LTO mode so compiler can do more optimisations
This commit is contained in:
		@@ -1296,6 +1296,7 @@ make_compiler_cflags() {
 | 
				
			|||||||
			if [ -n "$has_lto" ]; then
 | 
								if [ -n "$has_lto" ]; then
 | 
				
			||||||
				# Use LTO only if we see LTO exists and is requested
 | 
									# Use LTO only if we see LTO exists and is requested
 | 
				
			||||||
				flags="$flags -flto"
 | 
									flags="$flags -flto"
 | 
				
			||||||
 | 
									ldflags="$ldflags -fwhole-program"
 | 
				
			||||||
				features="$features lto"
 | 
									features="$features lto"
 | 
				
			||||||
			fi
 | 
								fi
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user