From 9d8446ed4927a4425da495787831a24f58e05115 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Sat, 12 Oct 2013 22:16:26 +0200 Subject: [PATCH] Move -lssl before -lcrypto in ssl link flags --- Changelog | 1 + configure.ac | 2 +- examples/configure.ac | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 8522bf46..7b88f045 100644 --- a/Changelog +++ b/Changelog @@ -49,6 +49,7 @@ * Fix ldns_nsec_covers_name for zones with an apex only. Thanks Miek. * Configure option to build perl bindings: --with-p5-net-ldns (Net::LDNS is a contribution from Erik Ostlyngen) + * bugfix #527: Move -lssl before -lcrypto when linking 1.6.16 2012-11-13 * Fix Makefile to build pyldns with BSD make diff --git a/configure.ac b/configure.ac index 461dbc9a..a157186f 100644 --- a/configure.ac +++ b/configure.ac @@ -403,7 +403,7 @@ AC_SUBST(LIBSSL_CPPFLAGS) AC_SUBST(LIBSSL_LDFLAGS) AC_SUBST(LIBSSL_LIBS) if test "x$HAVE_SSL" = "xyes"; then -AC_SUBST(LIBSSL_SSL_LIBS, ["$LIBSSL_LIBS -lssl"]) +AC_SUBST(LIBSSL_SSL_LIBS, ["-lssl $LIBSSL_LIBS"]) fi CPPFLAGS=$tmp_CPPFLAGS LDFLAGS=$tmp_LDFLAGS diff --git a/examples/configure.ac b/examples/configure.ac index 0f46f34d..f692a4dc 100644 --- a/examples/configure.ac +++ b/examples/configure.ac @@ -137,7 +137,7 @@ AC_SUBST(LIBSSL_CPPFLAGS) AC_SUBST(LIBSSL_LDFLAGS) AC_SUBST(LIBSSL_LIBS) if test "x$HAVE_SSL" = "xyes"; then -AC_SUBST(LIBSSL_SSL_LIBS, ["$LIBSSL_LIBS -lssl"]) +AC_SUBST(LIBSSL_SSL_LIBS, ["-lssl $LIBSSL_LIBS"]) fi CPPFLAGS="$tmp_CPPFLAGS" LDFLAGS="$tmp_LDFLAGS" -- 2.47.3