summaryrefslogtreecommitdiffstats
path: root/src/auto
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-02-12 23:12:26 +0100
committerChristian Brabandt <cb@256bit.org>2024-02-12 23:14:19 +0100
commit2f9aef42af94f6d68f37f6e9b8cb878e88ed12bf (patch)
tree257b645217b37e1f1f830afbfd7c0a76e686f503 /src/auto
parentf0a9d65e0a1d693cdfa964aa72de5b93b4cacdea (diff)
patch 9.1.0104: Linking fails with -lto because of PERL_CFLAGSv9.1.0104
Problem: Linking fails with -lto because of PERL_CFLAGS (Zoltan Toth) Solution: Filter out -flto argument from Perl CFLAGS. fixes: #14012 Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 70ebb33c4d..5c14648353 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -6494,10 +6494,11 @@ printf "%s\n" "$vi_cv_perl_xsubpp" >&6; }
fi
- perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
+ perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
-e 's/-fdebug-prefix-map[^ ]*//g' \
-e 's/-pipe //' \
+ -e 's/-flto\(=auto\)\? //' \
-e 's/-W[^ ]*//g' \
-e 's/-D_FORTIFY_SOURCE=.//g'`
perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
@@ -10402,9 +10403,12 @@ system ("touch conf.gtktest");
tmp_version = g_strdup("$min_gtk_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gtk_version");
+ g_free(tmp_version);
exit(1);
}
+g_free(tmp_version);
+
if ((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) &&