summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-12-10 00:17:00 +0000
committersmatz <smatz@openttd.org>2009-12-10 00:17:00 +0000
commit30abc4fe7dc0c3b0eae1540471d167d198dbc070 (patch)
tree36ad9ba475c9d70571a9eae302539cbf057a9c6e /config.lib
parent826fad03fb31645bcd0a53e8476e3a7d6cd4cf27 (diff)
downloadopenttd-30abc4fe7dc0c3b0eae1540471d167d198dbc070.tar.xz
(svn r18451) -Fix (r18360): LDFLAGS could contain different compiler flags than CFLAGS when compiling strgen (Rubidium)
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index 1ddf5f1d1..785427edf 100644
--- a/config.lib
+++ b/config.lib
@@ -1168,7 +1168,7 @@ make_compiler_cflags() {
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