[libsoup] Meson: tls-check must run the code



commit 5c45253243a2deca4880d4f614f2932373445cf9
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Wed Jul 24 12:37:03 2019 -0400

    Meson: tls-check must run the code
    
    That code will always compile, it has to run it to check the return
    value.
    
    Also remove reference to glib-openssl that got merged into
    glib-networking.

 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 93a6b860..94098645 100644
--- a/meson.build
+++ b/meson.build
@@ -154,8 +154,8 @@ if enable_tls_check
     }
     '''
 
-    assert(cc.compiles(check_gio_tls_src, name : 'GIO has real TLS support', dependencies : glib_deps),
-          'libsoup requires glib-networking or glib-openssl for TLS support')
+    rres = cc.run(check_gio_tls_src, name : 'GIO has real TLS support', dependencies : glib_deps)
+    assert(rres.compiled() and rres.returncode() == 0, 'libsoup requires glib-networking for TLS support')
   endif
 endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]