[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX 11.00 and parsing /bin/nm -p output (failing)
From: |
libtool-patches |
Subject: |
Re: HP-UX 11.00 and parsing /bin/nm -p output (failing) |
Date: |
Thu, 3 May 2001 12:54:36 -0500 |
User-agent: |
Mutt/1.1.12i |
On Thu, Apr 26, 2001 at 12:51:02AM +0100, Gary V. Vaughan wrote:
> On Tuesday 24 April 2001 10:17 pm, Gary V.Vaughan wrote:
> > I applied your patch by hand, but missed the change from
> > single quotes to double quotes in the third hunk.
>
> Shouldn't the second expression in the first hunk also not use single quotes
> and thus prevent variable interpolation?
>
> i.e.:
>
> --- libtool.m4 2001/04/23 00:15:32 1.163
> +++ libtool.m4 2001/04/24 21:08:13
> @@ -188,7 +188,7 @@
> [symcode='[ABCDGISTW]']
> ;;
> hpux*) # Its linker distinguishes data from code symbols
> - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char
> \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
> + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char
> \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 's/^'$symcode'* .* \(.*\)$/extern char \1;/p'
My way (generated libtool):
# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern char
\\1();/p' -e 's/^[BCDEGRST]* .* \\(.*\\)\$/extern char \\1;/p'"
Your way (generated libtool):
# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern char
\\1();/p' -e 's/^'[BCDEGRST]'* .* \\(.*\\)\$/extern char \\1;/p'"
What's the difference when eval'ed? I don't see it.
--
albert chin (address@hidden)
- Re: HP-UX 11.00 and parsing /bin/nm -p output (failing),
libtool-patches <=