#597150 gold fails to link ssmtp

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Aníbal Monsalve Salazar
Date:
2010-09-17 00:51:05 UTC
Severity:
normal
#597150#5
Date:
2010-09-17 00:46:59 UTC
From:
To:
Package: ssmtp
Version: 2.64-4
Owner: Raymes Khoury <raymes.khoury@gmail.com>
Tags: patch

Raymes, thank you for the patch below.

diff -ru ssmtp/configure ssmtp.patched/configure
--- ssmtp/configure	2010-09-16 17:10:00.000000000 -0700
+++ ssmtp.patched/configure	2010-09-16 17:09:11.000000000 -0700
@@ -4420,7 +4420,7 @@
 #define HAVE_SSL 1
 _ACEOF

-	LIBS="$LIBS -lssl"
+	LIBS="$LIBS -lssl -lcrypto"
 fi
 enableval=""

diff -ru ssmtp/configure.in ssmtp.patched/configure.in
--- ssmtp/configure.in	2010-09-16 17:09:51.000000000 -0700
+++ ssmtp.patched/configure.in	2010-09-16 17:09:11.000000000 -0700
@@ -52,7 +52,7 @@
 [  --enable-ssl           support for secure connection to mail server])
 if test x$enableval = xyes ; then
 	AC_DEFINE(HAVE_SSL)
-	LIBS="$LIBS -lssl"
+	LIBS="$LIBS -lssl -lcrypto"
 fi
 enableval=""