This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: [PATCH] Dont use wrapper script in case of canadian build


Bart, Thomas,
All,

On Sunday 02 August 2009 22:59:44 Thomas Charron wrote:
> On Sun, Aug 2, 2009 at 2:09 PM, Yann E.
> MORIN<yann.morin.1998@anciens.enib.fr> wrote:
> > On Sunday 02 August 2009 17:38:33 Bart vdr. Meulen wrote:
> >> When making a canadian build, it's unkown whether the target system
> >> supports a bash-like shell. So don't apply the wrapper script for
> >> the binaries.
> > Are you trying to say that there's no /bin/sh in mingw32 ?
>   Generally speaking?  No.  You can install it with MSYS, however,
> Mingw is not cygwin.

OK, I finally had some time to work on this: there now are two versions
of the wrapper:
 - the pre-existing shell script,
 - a new wrapper written in C that gets compiled for the host.

It's still up to the user to select what wrapper he/she wants to use. After
all, if there can be a shell in MingW32, using the shell script would be
good enough.

As I feared, the C version is much more complex than its shell counterpart,
and I don't like that. I've tested it only lightly, and it does work as
expected, but _may_ have some short-comings, notably with multi-byte
characters in file names, which I'm not sure are correctly handled. Also,
error conditions (eg. out of memory) are not all tested for.

If you can have a look, then I'm open to critiscism. And to patches! ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


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