[Webkit-unassigned] [Bug 25809] New: decorations __declspec(dlimport) and __declspec(dlexport) break linking on win32 with mingw

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 14 14:54:03 PDT 2009


           Summary: decorations __declspec(dlimport) and
                    __declspec(dlexport) break linking on win32 with mingw
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fridrich.strba at bluewin.ch

Since we are building webkit by building several static libraries that we link
into one shared library, the decorations break the linking on win32 with mingw.
The win32 linker cannot link the symbols into a static library as
__imp___whatever, so, it links them as _whatever only. But at the time when we
are creating the libwebkit shared library, the linker looks for the
__imp___whatever symbols because the decorations force him to do so.
Now, the win32 linker that comes with GNU binutils has a nice feature that is
called autoimport. It is activated by default and does the RightThing(tm)
without the decorations. When building with gcc on windows, it is a safe
practice to rely on this nifty feature, because getting the __declspec(dl*)
decorations right is just a big pain and sometime not even humanly possible.
Following patch solves that for win32 builds with mingw32

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list