Code

Drop -ssl -lcrypto from linking.
[pkg-collectd.git] / debian / patches / drop_lssl_lcrypto_from_linking.patch
1 Author: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
2 Subject: Remove SSL libs from libs
4 The Makefile/Configure adds "-lssl -lcrypto" but does not depend libssl-dev
5 nor does it use any of its functions diretly.
6 Depending on those should not be needed unless for static compilation thus
7 removing them.
9 BTS: https://bugs.debian.org/852924
11 ---
12  configure.ac    |    2 +-
13  src/Makefile.am |    2 +-
14  2 files changed, 2 insertions(+), 2 deletions(-)
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -3574,7 +3574,7 @@ then
19  
20         if test "x$LIBNETAPP_LIBS" = "x"
21         then
22 -               LIBNETAPP_LIBS="$PTHREAD_LIBS -lxml -ladt -lssl -lm -lcrypto -lz"
23 +               LIBNETAPP_LIBS="$PTHREAD_LIBS -lxml -ladt -lm -lz"
24         fi
25         AC_MSG_NOTICE([netapp LIBS: $LIBNETAPP_LIBS])
26  
27 --- a/src/Makefile.am
28 +++ b/src/Makefile.am
29 @@ -825,7 +825,7 @@ if BUILD_PLUGIN_NOTIFY_EMAIL
30  pkglib_LTLIBRARIES += notify_email.la
31  notify_email_la_SOURCES = notify_email.c
32  notify_email_la_LDFLAGS = $(PLUGIN_LDFLAGS)
33 -notify_email_la_LIBADD = -lesmtp -lssl -lcrypto
34 +notify_email_la_LIBADD = -lesmtp
35  endif
36  
37  if BUILD_PLUGIN_NOTIFY_NAGIOS