actual link requirements
Christian Stimming
stimming at tuhh.de
Thu Mar 16 10:30:11 EST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Derek Atkins schrieb:
> Quoting Christian Stimming <stimming at tuhh.de>:
>
>> Sorry, my fault. There is no dependency. This is just an artifact of the
>> "grep" that I did earlier, when symbols were substrings of other
>> symbols. I need to add the extra -w switch to the grep commands, and
>> then it works correctly. This gives the following requirements:
>
> Any chance you could commit the script you're using? I think it might
> be particularly useful...
(Meant to send first reply to list;) I already send this in the last
post. Whatever, here it is again (but without the nice formatting).
Christian
# Create table of all exported symbols
nm -A `find . -name '*.so'` | grep ' T ' | \
sed 's/^\([^:]*\).* \([^ ]*\)$/\1: \2/' > allsymbols
# For a particular library, check import requirements, listing all symbols
A=src/gnc-module/.libs/libgw-gnc-module.so && echo "$A requirements:" &&
nm $A | grep ' U ' | sed 's/^.* \([^ ]*\)$/\1/' | grep -wFf- allsymbols
# For a particular library, check import requirements, summarized by library
A=src/gnc-module/.libs/libgw-gnc-module.so && echo "$A requirements:" &&
nm $A | grep ' U ' | sed 's/^.* \([^ ]*\)$/\1/' | grep -wFf- allsymbols
| cut -d: -f1 | sort | uniq
# List all import requirements summarized by library for a full directory
for A in `find src/business/business-core -name '*.so'`; do \
echo -e "\n##$A requirements:" && nm $A | grep ' U ' | \
sed 's/^.* \([^ ]*\)$/\1/' | grep -wFf- allsymbols | cut -d: -f1 |
sort | uniq; done
# For a particular library, list import requirements, formatted for
Makefile.am
A=src/business/business-core/.libs/libgw-business-core.so && echo "$A
requirements:" && nm $A | grep ' U ' | sed 's/^.* \([^ ]*\)$/\1/' | grep
- -wFf- allsymbols | cut -d: -f1 | sort | uniq | sed 's!.libs/!!' | sed
's/.so$/.la \\/' | sed 's!^.! \${top_builddir}!'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRBmEgmXAi+BfhivFAQLo/AP+PfzWN0kvtRjJGslWnDREW3Y/DlDOE/wX
0Q+XWgazhJV5CJKE+eHasvBo6hXWvnKwBdDqft8qlmohab0q/zteiuyjivbvtpWi
TrgezHzdZQ8DNriiz+bGIAWow/oM/bardp93KSP1DmPjvqXW1EmOhkRCiIlWkfig
FqjXUQ/TpqA=
=v4bt
-----END PGP SIGNATURE-----
More information about the gnucash-devel
mailing list