libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Set IFS in libtool for ash


From: Ralf Wildenhues
Subject: FYI: Set IFS in libtool for ash
Date: Wed, 16 Mar 2005 11:00:33 +0100
User-agent: Mutt/1.4.1i

/bin/ash troubles are always the most fun to find out, since they tend
to be elusive.

With this one, ash-0.3.8 somehow has as wrong IFS setting in libtool
which causes $base_compile to contain newlines as separators, which
then causes func_infer_tag to fail in {link,link2,objectlist}.test.

Applied the fix below to branch-2-0 and HEAD.

Regards,
Ralf

        * m4/libtool.m4 (_LT_CONFIG): Reset IFS to fix failure with ash.

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.125.2.36
diff -u -r1.125.2.36 libtool.m4
--- m4/libtool.m4       14 Mar 2005 15:03:24 -0000      1.125.2.36
+++ m4/libtool.m4       16 Mar 2005 09:43:34 -0000
@@ -517,6 +517,12 @@
 _LT_LIBTOOL_TAG_VARS
 # ### END LIBTOOL CONFIG
 
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS="  $as_nl"
+
 # The HP-UX ksh and POSIX shell print the target directory to stdout
 # if CDPATH is set.
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH




reply via email to

[Prev in Thread] Current Thread [Next in Thread]