]> granicus.if.org Git - vim/commitdiff
patch 8.2.2089: libvterm test fails to build on Mac v8.2.2089
authorBram Moolenaar <Bram@vim.org>
Fri, 4 Dec 2020 17:09:54 +0000 (18:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 4 Dec 2020 17:09:54 +0000 (18:09 +0100)
Problem:    Libvterm test fails to build on Mac.
Solution:   Adjust configure to remove a space between -L and the path that
            follows.

src/auto/configure
src/configure.ac
src/version.c

index d1359485b60883c9006d06967aca31514f22aaba..205312a3bd8fa61e4a6c0603f408af73edbf3a6a 100755 (executable)
@@ -14861,6 +14861,8 @@ else
 $as_echo "no" >&6; }
 fi
 
+LDFLAGS=`echo "$LDFLAGS" | sed -e 's/-L /-L/g'`
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
 $as_echo_n "checking linker --as-needed support... " >&6; }
 LINK_AS_NEEDED=
index 010cc8f09ca6c0e20a781435c66d797e5ee4b1da..4b6794a29eeeb62d29031c237a9d9e8671705080 100644 (file)
@@ -4467,6 +4467,10 @@ else
   AC_MSG_RESULT(no)
 fi
 
+dnl $LDFLAGS is passed to glibtool in libvterm, it doesn't like a space
+dnl between "-L" and the path that follows.
+LDFLAGS=`echo "$LDFLAGS" | sed -e 's/-L /-L/g'`
+
 dnl link.sh tries to avoid overlinking in a hackish way.
 dnl At least GNU ld supports --as-needed which provides the same functionality
 dnl at linker level. Let's use it.
index 36aa840928a69cdcad8124dc5b9fb7d42d00a04e..8b8a6c32a76c51e9b8fcec04288558964e6b3508 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2089,
 /**/
     2088,
 /**/