Home GnuPG
Diffusion GnuPG 27fe067efea8

Avoid unnecessary library linkage
27fe067efea8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Avoid unnecessary library linkage

* dirmngr/Makefile.am: Avoid $(DNSLIBS) for dirmngr_ldap
* g10/Makefile.am: $(LIBREADLINE) is only for gpg2; gpgv2 does not
need $(LIBASSUAN_LIBS)
* sm/Makefile.am: gpgsm does not need $(ZLIBS)
* tools/Makefile.am: gpgconf does not need $(NPTH_LIBS)

In the course of building GnuPG 2.1.0 beta864 on debian, i found that
several of the installed executables were linked to libraries that
they did not need to be linked to, which would cause unnecessary
package dependencies at runtime.

The changeset here removes these unnecessary libraries from linking.

Something similar could possibly also be done by passing --as-needed
to the linker, but trimming the depenencies seems more parsimonious.

Details

Provenance
dkgAuthored on Oct 8 2014, 9:12 AM
wernerCommitted on Oct 9 2014, 8:17 AM
Parents
rG3ae6afc1336d: gpg: Avoid error exit if keygrip computations fails in a key listing.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG27fe067efea8: Avoid unnecessary library linkage (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Oct 9 2014, 8:17 AM