actual link requirements
Christian Stimming
stimming at tuhh.de
Thu Mar 16 04:55:52 EST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Actually the last grep command in the pipe needs an extra "-F" argument,
or otherwise it will take forever :-)
Use the following lines for lookup of the actual link requirements:
> # All in top-level of gnucash build tree
>
> # Create table of all exported symbols
> nm -A `find . -name '*.so'` | grep ' T ' | \
> sed 's/^\([^:]*\).* \([^ ]*\)$/\1: \2/' > allsymbols
>
> # For a particular library, check symbol import
> # requirements, listing all symbols (needs the file from above)
> A=src/gnc-module/.libs/libgw-gnc-module.so && echo "$A requirements:" \
> && nm $A | grep ' U ' | sed 's/^.* \([^ ]*\)$/\1/' | \
> grep -Ff- 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 -Ff- 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 -Ff- allsymbols | cut -d: -f1 | sort | uniq; done
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRBk2KGXAi+BfhivFAQLubAP/d2agKePL9+lImXujijgYAE5O3+KjegMd
r9oqTz8Hj0+CDkwZaQTq+gXJ23BOh5ld46E/eeriFPaBal+ZwO/Q6cqFoLtOPB+w
2nRMPM5QWAwiEgNgb5eP+BUGxDzd5YzyzgZmeAgUnC7jJVyArSAQbzRKTPjJM+sw
ABn2+OI0nmM=
=UW9E
-----END PGP SIGNATURE-----
More information about the gnucash-devel
mailing list