Browse Source

configure.ac: append extra linker flags instead of prepending them.

Link order should list libraries after the libraries that use them,
so when we're guessing that we might also need to add -ldl in order
to use -lssl, we should add -ldl after -lssl.

Closes https://github.com/curl/curl/pull/2234
master
Dan Johnson 4 years ago
committed by Marcel Raad
parent
commit
0616dfa1e0
No known key found for this signature in database GPG Key ID: 7ADACB610D796DA
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      configure.ac

+ 2
- 2
configure.ac View File

@ -1656,7 +1656,7 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
dnl still no, but what about with -ldl?
AC_MSG_CHECKING([OpenSSL linking with -ldl])
LIBS="-ldl $LIBS"
LIBS="$LIBS -ldl"
AC_TRY_LINK(
[
#include <openssl/err.h>
@ -1673,7 +1673,7 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
dnl ok, so what about bouth -ldl and -lpthread?
AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
LIBS="-lpthread $LIBS"
LIBS="$LIBS -lpthread"
AC_TRY_LINK(
[
#include <openssl/err.h>


Loading…
Cancel
Save