]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Export C++ symbol visibility.
authorSimon Josefsson <simon@josefsson.org>
Thu, 15 Oct 2009 06:27:48 +0000 (08:27 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 15 Oct 2009 06:27:48 +0000 (08:27 +0200)
Tiny patch from Boyan Kasarov <bkasarov@gmail.com>.

lib/libgnutlsxx.map

index 62f6c12437903e88c7ab1f8b7b47cd0dcd38fccf..f61d86154466f6d183714b3b3a6c9d20c28fc648 100644 (file)
@@ -24,11 +24,18 @@ GNUTLS_1_6
 {
   global:
     extern "C++" {
-      gnutls::*;
-  };
+      # To specify a class we also need to specify its typeinfo,
+      # typeinfo name and vtable objects.
+      # For example for class gnutls::psk_client_credentials,
+      # we need to declare this 4 lines:
+      #
+      # gnutls::psk_client_credentials::*;
+      # "typeinfo for gnutls::psk_client_credentials";
+      # "typeinfo name for gnutls::psk_client_credentials";
+      # "vtable for gnutls::psk_client_credentials";
 
-  # export typeinfo names and structures
-  _ZTI*;
+      *gnutls::*;
+  };
 
   local: *;
 };