more comfortable approach for exporting dbus functions on windows

Thiago Macieira thiago at
Thu Mar 4 14:26:06 PST 2010

Em Quinta-feira 4. Março 2010, às 22.51.51, Colin Walters escreveu:
> On Thu, Mar 4, 2010 at 4:33 PM, Ralf Habacker <ralf.habacker at> 
> > On windows the macro DBUS_EXPORT contains the required compiler directive
> > to export/import symbols, on non windows os this macro is a noop.
> I haven't looked at the patch, but I'm relatively OK with this.  I'd
> suggest this text for the comment:
> /*
>  * Declare the following symbol as public.  This is currently a noop on
>  * platforms other than Windows.
>  */
> Related to this, one thing we should actually really investigate is
> the trick used in GLib to avoid going through the PLT for internal
> functions.  See:

Link with -Bsymbolic-functions.

Tha makes the linker emit internal relocations for all function calls 
resolving into the library itself. No PLT access.

Thiago Macieira - thiago (AT) - thiago (AT)
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the dbus mailing list