summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
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