X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <50311C56.8050607@ferzkopp.net> Date: Sun, 19 Aug 2012 10:03:18 -0700 From: Andreas Schiffler User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: libtool quoting error Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com The libtool distributed with cygwin has a bug that prevents use in paths containing spaces. This was encountered when trying to build SDL2 on Windows (see http://bugzilla.libsdl.org/show_bug.cgi?id=1575 for details or repro). # Which release of libtool.m4 was used? macro_version=2.2.6 macro_revision=1.3012 The fix is simple: add additional quoting. $ diff libtool libtool-fixed 2797c2797 < exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' --- > exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' 8321c8321 < if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then --- > if test "X$ECHO" = "X$SHELL \"$progpath\" --fallback-echo"; then 8323,8324c8323,8324 < [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; < *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; --- > [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL \"$progpath\" --fallback-echo";; > *) qecho="$SHELL `pwd`/\"$progpath\" --fallback-echo";; 8559c8559 < relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" --- > relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple