crosstool-ng: where is a strategic place to tell crosstool-ng that sed should be gsed?

Dimitry Andric dimitry@andric.com
Tue Jan 6 17:39:00 GMT 2009


John Utz wrote:
> BSD sed doesnt grok '-r' and it's used all over the place in crosstool-ng.

The (FreeBSD) sed option for extended regular expressions is -E, but a
quick hack alternative would be to just do "alias sed gsed" in the
beginning of the script. :)


> What would be desired would be either some environment vars or some
> configure time detection that does the right thing or a flag called 'use
> BSD names for gnu utils'

Just something like:

SED="gsed"
AWK="gawk"

and replacing direct invocations of sed, awk, e.g. with ${SED}, ${AWK},
and so on.

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



More information about the crossgcc mailing list