From: Otto Moerbeek Date: Tue, 17 Jun 2025 07:59:29 +0000 (+0200) Subject: Pick -lcrypto up from the spot defined by dep_libcrypto X-Git-Tag: dnsdist-2.0.0-beta1~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62e3fc13ecabc04914c4059a6bd3d545ae5787d0;p=thirdparty%2Fpdns.git Pick -lcrypto up from the spot defined by dep_libcrypto Also avoid a bunch of warning: as compile commands don't take -L: c++: warning: argument unused during compilation: '-L/usr/local/eboringssl/lib' [-Wunused-command-line -argument] Signed-off-by: Otto Moerbeek --- diff --git a/meson/libcrypto/meson.build b/meson/libcrypto/meson.build index 9af7840f16..e3d62ce26c 100644 --- a/meson/libcrypto/meson.build +++ b/meson/libcrypto/meson.build @@ -44,8 +44,7 @@ if not dep_libcrypto.found() have = cxx.has_header(dir / 'include/openssl/crypto.h') if have dep_libcrypto = declare_dependency( - compile_args: ['-L' + dir / 'lib'], - link_args: ['-lcrypto'], + link_args: ['-L' + dir / 'lib', '-lcrypto'], include_directories: include_directories(dir / 'include', is_system: false), ) break diff --git a/meson/libssl/meson.build b/meson/libssl/meson.build index a175d07cd6..7651a3025a 100644 --- a/meson/libssl/meson.build +++ b/meson/libssl/meson.build @@ -5,7 +5,7 @@ opt_libssl_dir = get_option('tls-libssl-dir') if opt_libssl_dir != '' dep_libssl = declare_dependency( include_directories: [opt_libssl_dir / 'include'], - link_args: ['-L' + opt_libssl_dir / 'lib', '-lssl', '-lcrypto'], + link_args: ['-L' + opt_libssl_dir / 'lib', '-lssl'], ) else dep_libssl = dependency('libssl', required: opt_libssl)