From: Danny Smith <dannysmith@cl...> - 2005-02-17 08:37:48
Christopher Faylor wrote:
> Isn't there some kind of glob equivalent which could be pressed into
> service here?
Not really. There is a libglob.a andglob.h that are part of gnu make that
could be tested for and used.
> ----- Forwarded message from Mark Mitchell <mark@...> -----
> From: Mark Mitchell
> To: binutils
> Subject: PATCH: Do not use glob on MinGW hosts
> Date: Tue, 15 Feb 2005 22:30:09 -0800
> When building a MinGW-hosted Linux-targeted compiler, we get a
> compilation failure in the linker. The problem is that the linker
> wants to use "glob" to handle "#include" directives in /etc/ld.so.conf
> (appropriately adjusted for sysroot, of course) -- but Windows does
> not have this routine.
> This patch avoids the use of glob -- by assuming the the included file
> is just a literal pathname rather than a glob pattern. As #include's
> in ld.so.conf are rare, and glob-pattern includes are rarer, this
> seems like a satisfactory solution.
> (Ideally, we'd have a version of "glob" in libiberty, but we don't.
> And, providing one is a bit complicated int that we really want to
> match the GLIBC semantics for "glob", whereas on Windows it might make
> sense to use FindFirstFile/FindNextFile, which are somewhat
> OK to apply?