Crosstool-ng on Solaris

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Sun Jan 11 22:21:00 GMT 2009


Thomas,
All,

On Saturday 10 January 2009 23:29:02 Thomas Jourdan wrote:
> My bad, the default shell is KSH, not bash, which may explain why the
> braces are expanded. In the configure script, the shabang is /bin/sh,
> which points to ksh93.
> What must I conclude ? Does some of the ct-ng scripts use bash only
> functions, in which case the shabang is not correct ? Or wouldn't it be
> better to track and remove bash dependencies ?

./configure must be able to run everywhere, so it is using /bin/sh, which
ought to be a POSIX-compliant shell. Thus ./configure must be POSIXly
correct. I've tried to make it so, and it now works with both bash and dash.
I just tested with ksh, and yes, it breaks.

This all biuols down to one point: ./configure is not yet POSIXly correct,
and must be fixed.

Which takes us down to the other issue: allow user to tell ./configure where
to find some of the needed tools, such as:
./configure --with-bash=...
            --with-sed=...
            --with-awk=...

But let's discuss that on the appropriate thread...

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