]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
removed non-working test for static linking.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 26 Jan 2014 12:08:55 +0000 (13:08 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 26 Jan 2014 12:08:55 +0000 (13:08 +0100)
tests/mini-global-load.c

index f3dc7bea02214803b75c635162c1d4f4469a9aa0..cba69076d80f76c3382c2d5542c72c9f4c49e316 100644 (file)
@@ -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)