Path: blob/main/irc/hexchat/files/patch-meson.build
16134 views
--- meson.build.orig 2019-12-21 06:38:06 UTC1+++ meson.build2@@ -16,11 +16,21 @@ cc = meson.get_compiler('c')3libgio_dep = dependency('gio-2.0', version: '>= 2.34.0')4libgmodule_dep = dependency('gmodule-2.0')5global_deps = []6+libssl_dep_found = false7if cc.get_id() == 'msvc'8libssl_dep = cc.find_library('libeay32')9else10libssl_dep = dependency('openssl', version: '>= 0.9.8',11- required: get_option('with-ssl'))12+ required: false)13+ if not libssl_dep.found()14+ libssl_dep = [15+ cc.find_library('ssl', required: get_option('with-ssl')),16+ cc.find_library('crypto', required: get_option('with-ssl'))17+ ]18+ libssl_dep_found = libssl_dep[0].found()19+ else20+ libssl_dep_found = libssl_dep.found()21+ endif22endif2324config_h = configuration_data()25@@ -49,7 +59,7 @@ config_h.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSIO26config_h.set('HAVE_MEMRCHR', cc.has_function('memrchr'))27config_h.set('HAVE_STRINGS_H', cc.has_header('strings.h'))2829-if libssl_dep.found()30+if libssl_dep_found31config_h.set('HAVE_X509_GET_SIGNATURE_NID',32cc.has_function('X509_get_signature_nid', dependencies: libssl_dep)33)34@@ -129,9 +139,6 @@ global_ldflags = []35test_ldflags = [36'-Wl,-z,relro',37'-Wl,-z,now',38- # mingw39- '-Wl,--dynamicbase',40- '-Wl,--nxcompat',41]42foreach ldflag : test_ldflags43if meson.version().version_compare('>= 0.46.0')444546