This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Make collect2 be buildable when host=i386-mingw, target=somethingelse


> This patch is a first draft attempt to fix that.  It compiles using my
> i386-linux -> i386-mingw cross compiler.  I have not made the
> slightest attempt to test its execution, although I will tomorrow
> afternoon.  Also, I do not know what I am doing when it comes to
> Windows system programming - the code you see here is the result of me
> poring over the online API reference at msdn.microsoft.com all
> afternoon.  (Particular areas of concern are the command line quoting,
> executable search, and what collect2's install_handlers() does.)

The whole point of pexecute() is to make everything platform
independent.  It even works with DJGPP, which is plain DOS.  Why can't
pexecute() be used?

And there's no such thing as mkpipe() under DJGPP, so pmkpipe()
becomes fundamentally impossible.

> I've introduced three new libiberty APIs, pexec() pmkpipe() and
> pexec_set_program_name() -- the latter is slated to go away in a
> global cleanup Real Soon, but right now I need something that works.

If it's slated to go away soon, then it definitely doesn't belong in
libiberty.


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