From: Nikos Mavrogiannopoulos Date: Sun, 26 Jan 2014 12:08:55 +0000 (+0100) Subject: removed non-working test for static linking. X-Git-Tag: gnutls_3_3_0pre0~264 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6233285f74a9ccc6ffcf3fcec803f4faeeff9c7a;p=thirdparty%2Fgnutls.git removed non-working test for static linking. --- diff --git a/tests/mini-global-load.c b/tests/mini-global-load.c index f3dc7bea02..cba69076d8 100644 --- a/tests/mini-global-load.c +++ b/tests/mini-global-load.c @@ -98,24 +98,6 @@ void doit(void) gnutls_session_t client; int cret = GNUTLS_E_AGAIN; -#ifndef _WIN32 - /* check if we are statically linked, because in that - * case we _need_ gnutls_global_init() to be called. */ - void * sym; - void *h = dlopen (NULL, RTLD_LAZY); - - if (h == NULL) - exit(77); - - sym = dlsym (h, "gnutls_init"); - - dlclose(h); - - if (sym != NULL) /* yes we are */ - exit(77); -#endif - - /* General init. */ gnutls_global_set_log_function(tls_log_func); if (debug)