Changeset - r13910:f5a1afdd3340
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2009-12-10 00:17:00
smatz@openttd.org
(svn r18451) -Fix (r18360): LDFLAGS could contain different compiler flags than CFLAGS when compiling strgen (Rubidium)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1165,13 +1165,13 @@ make_compiler_cflags() {
 
		if [ $cc_version -ge 45 ]; then
 
			# Only GCC 4.5+ has (possibly) LTO
 
			has_lto=`$1 -dumpspecs | grep '\%{flto}'`
 
			if [ "$enable_lto" != "0" ] && [ -n "$has_lto" ]; then
 
				# Use LTO only if we see LTO exists and is requested
 
				flags="$flags -flto"
 
				ldflags="$ldflags -flto $CFLAGS"
 
				ldflags="$ldflags -flto $2"
 
			fi
 
		fi
 

	
 
		has_rdynamic=`$1 -dumpspecs | grep rdynamic`
 
		if [ -n "$has_rdynamic" ]; then
 
			# rdynamic is used to get useful stack traces from crash reports.
0 comments (0 inline, 0 general)