[PATCH] Dont use wrapper script in case of canadian build
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Sat Aug 29 22:45:00 GMT 2009
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
More information about the crossgcc
mailing list