[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: compile failure due to bad sed foo in configure.in (ITS#2764)

On Sun, 12 Oct 2003 robbat2@gentoo.org wrote:

> Sed expression should be corrected to:
> perl -MExtUtils::Embed -e ldopts|sed -e 's/\W-lc\>//g;s/^-lc\>//'
> which produces:
> -rdynamic  -L/usr/local/lib
> /usr/lib/perl5/5.8.1/i686-linux/auto/DynaLoader/DynaLoader.a
> -L/usr/lib/perl5/5.8.1/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt
> -lutil

I'm not convinced that all sed version understands \W and \>.  You may wan't
to consider using perl with the -p option instead, assuming if you don't
have perl anyway you wouldn't be here.

perl -pe 's/\W-lc\b//g; s/^lc\b//;'