3
0
Fork 0
forked from mirrors/nixpkgs

gnupg: Fix gpgsm linking for gnupg 2.1.14

gnupg 2.1.14 fails to compile under OS X due to a missing -lintl flag [1].
This was fixed in commit c49c43d7 in the gnupg repository [2], which adds
the flag to Makefile.am.

This commit adds the flag to Makefile.in.

[1] https://lists.gnupg.org/pipermail/gnupg-devel/2016-July/031354.html
[2] https://lists.gnupg.org/pipermail/gnupg-devel/2016-July/031362.html

Fixes #17617.
This commit is contained in:
Svend Sorensen 2016-08-09 17:01:09 -07:00
parent 88f3d043b6
commit 092b6b68a0
2 changed files with 13 additions and 0 deletions

View file

@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
readline libusb gnutls adns openldap zlib bzip2
];
patches = [ ./fix-gpgsm-linking.patch ];
postPatch = stdenv.lib.optionalString stdenv.isLinux ''
sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
''; #" fix Emacs syntax highlighting :-(

View file

@ -0,0 +1,11 @@
--- a/tests/gpgscm/Makefile.in
+++ b/tests/gpgscm/Makefile.in
@@ -457,7 +457,7 @@
scheme-config.h opdefines.h scheme.c scheme.h scheme-private.h
gpgscm_LDADD = $(LDADD) $(common_libs) \
- $(NETLIBS) $(LIBICONV) $(LIBREADLINE) \
+ $(NETLIBS) $(LIBICONV) $(LIBREADLINE) $(LIBINTL) \
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
t_child_SOURCES = t-child.c