Ticket #863: 0001-configure.ac-change-libcrypto-libssl-pkgconfig-disco.patch

File 0001-configure.ac-change-libcrypto-libssl-pkgconfig-disco.patch, 984 bytes (added by Steffan Karger, 7 years ago)
  • configure.ac

    From bc95ec0bb39252c7e83dfea8458128bce7f86177 Mon Sep 17 00:00:00 2001
    From: Steffan Karger <steffan@karger.me>
    Date: Sun, 26 Mar 2017 12:21:42 +0200
    Subject: [PATCH] configure.ac: change libcrypto/libssl pkgconfig discovery
     order
    
    The previous discovery order would result in "-lcrypto -lssl" link flags,
    while we need "-lssl -lcrypto".
    
    Signed-off-by: Steffan Karger <steffan@karger.me>
    ---
     configure.ac | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/configure.ac b/configure.ac
    index 2406ad8..fb1d59a 100644
    a b if test "${enable_crypto}" = "yes" -a "${with_crypto_library}" = "openssl"; then 
    859859                # if the user did not explicitly specify flags, try to autodetect
    860860                PKG_CHECK_MODULES(
    861861                        [OPENSSL],
    862                         [libcrypto >= 0.9.8, libssl >= 0.9.8],
     862                        [libssl >= 0.9.8, libcrypto >= 0.9.8],
    863863                [have_openssl="yes"],
    864864                        [have_openssl="no"] # Provide if-not-found to prevent erroring out
    865865                )