https://github.com/libsdl-org/SDL_image/commit/2949e0384fb1fde160e62ff9d734a47a1a251b9b
From 2949e0384fb1fde160e62ff9d734a47a1a251b9b Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 2 Dec 2021 20:50:10 +0300
Subject: [PATCH] libtool upgrade to 2.4.6 - 6/n: fix typo introduced in
libtool-2.4.3
i.e. wrong -L/-R detection. see:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21137 | 22895 | 31900 | 36762
---
acinclude/libtool.m4 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/acinclude/libtool.m4 b/acinclude/libtool.m4
index 849cd6f..db3e965 100644
--- a/acinclude/libtool.m4
+++ b/acinclude/libtool.m4
@@ -7529,8 +7529,9 @@ if AC_TRY_EVAL(ac_compile); then
-L* | -R* | -l*)
# Some compilers place space between "-{L,R}" and the path.
# Remove the space.
- if test x-L = "$p" ||
- test x-R = "$p"; then
+ if test x-L = "x$p" ||
+ test x-R = "x$p" ||
+ test x-l = "x$p"; then
prev=$p
continue
fi