This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug with paths containing double slashes after double dot after a mount point


On 6/18/2011 7:33 AM, Corinna Vinschen wrote:
> cygpath -pm `some-mingw-g++ -print-search-dirs`

As the OP stated, this is happening deep inside libtool, so it's not
like he can easily insert a call to 'cygpath' in there.  Now, libtool
DOES have some limited support for environments where path formats
differ between the build system and the compiler -- specifically, for
using the native mingw gcc from cygwin -- but you have to take some
special steps to activate it. (By default, when libtool is configured,
it naturally assumes that --build=i686-pc-cygwin --host=i686-pc-mingw32
means 'use the cygwin-hosted mingw cross compiler' and does NOT activate
this path support for the tools, because it is assumed the toolchain
itself understands cygwin paths).

See
	info libtool 'Cross compiling'
	info libtool 'File name conversion'
	info libtool 'Cygwin/Windows File Name Conversion'
and finally
	info libtool 'Cygwin to MinGW Cross'
(you want the 'fake' scenario).

Basically, what you have to do is this:

	export lt_cv_to_tool_file_cmd=func_convert_file_cygwin_to_w32
	export PATH="/c/MinGW/bin:${PATH}"
	configure --build=i686-pc-cygwin \
        	--host=mingw32 \
        	NM=/c/MinGW/bin/nm.exe
	
Which does a number of things: (1) it activates the filename conversion
logic but ONLY for the paths that libtool feeds to the compiler tools,
(2) it ensures that the mingw.org compiler is used by forcing the name
'mingw32-gcc.exe' etc, and (3) ensures that the other mingw utilities
are found first in the PATH.  (4) Finally, there's something special
about $NM, but I forget what.

> Other than that, I fixed that in CVS.  It's a Win32 path coversion problem
> which only occurs if there are multiple backslashes trailing a ".." path
> component.

Yay!

--
Chuck


--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]