(svn r18451) -Fix (r18360): LDFLAGS could contain different compiler flags than CFLAGS when compiling strgen (Rubidium)

This commit is contained in:
smatz 2009-12-10 00:17:00 +00:00
parent 826fad03fb
commit 30abc4fe7d
1 changed files with 1 additions and 1 deletions

View File

@ -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