mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
syntax-check: fix prohibit_strcmp syntax-check violation.
* build-aux/ltmain.in (func_generate_dlsyms): Add a definition for STREQ, and then use it in place of !strcmp. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
This commit is contained in:
parent
125cab0c9b
commit
ed41ffafb3
@ -2660,6 +2660,8 @@ extern \"C\" {
|
||||
# define LT_DLSYM_CONST const
|
||||
#endif
|
||||
|
||||
#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
|
||||
|
||||
/* External symbol declarations for the compiler. */\
|
||||
"
|
||||
|
||||
@ -2821,7 +2823,7 @@ static void lt_syminit(void)
|
||||
LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
|
||||
for (; symbol->name; ++symbol)
|
||||
{"
|
||||
$SED 's/.*/ if (!strcmp (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
|
||||
$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
|
||||
echo >> "$output_objdir/$my_dlsyms" "\
|
||||
}
|
||||
}"
|
||||
|
Loading…
Reference in New Issue
Block a user