<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CMake: patches for mingw build"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103157#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CMake: patches for mingw build"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103157">bug 103157</a>
              from <span class="vcard"><a class="email" href="mailto:manisandro@gmail.com" title="Sandro Mani <manisandro@gmail.com>"> <span class="fn">Sandro Mani</span></a>
</span></b>
        <pre>I've looked around a bit and can't really find much, except that besides
autotools also qmake appears to do it by default, as I gather from [1].

As an experiment, I looked at all dlls of all Fedora mingw packages:

$ dnf provides '/usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll' | grep
Filename | awk '{print $3}' | sort | uniq > dlls

$ cat dlls | wc -l
714

$ cat dlls | grep -Ev '[0-9].dll' | grep -v "^Qt5" | wc -l
343

So out of 714 dlls, 343 have no versioning.

A strong argument for versioning IMO is that from a packaging point of view it
enforces versioned dependencies between packages, i.e.:

$ rpm -q --requires mingw64-gdal
mingw64(iconv.dll)
mingw64(kernel32.dll)
mingw64(libcfitsio-3.dll)
mingw64(libcurl-4.dll)
mingw64(libexpat-1.dll)
mingw64(libfreexl-1.dll)
mingw64(libgcc_s_seh-1.dll)
mingw64(libgeos_c-1.dll)
mingw64(libgeotiff-2.dll)
mingw64(libgif-7.dll)
mingw64(libgrib2c.dll)
mingw64(libgta-0.dll)
mingw64(libjasper-4.dll)
mingw64(libjpeg-62.dll)
mingw64(libkmlbase.dll)
mingw64(libkmldom.dll)
mingw64(libkmlengine.dll)
mingw64(libpcre-1.dll)
mingw64(libpng16-16.dll)
mingw64(libpoppler-71.dll)
mingw64(libpq.dll)
mingw64(libproj-12.dll)
mingw64(libspatialite-4.dll)
mingw64(libsqlite3-0.dll)
mingw64(libstdc++-6.dll)
mingw64(libtiff-5.dll)
mingw64(libwebp-7.dll)
mingw64(libxerces-c-3-1.dll)
mingw64(libxml2-2.dll)
mingw64(msvcrt.dll)
mingw64(odbc32.dll)
mingw64(odbccp32.dll)
mingw64(psapi.dll)
mingw64(user32.dll)
mingw64(ws2_32.dll)
mingw64(zlib1.dll)

[1]
<a href="https://stackoverflow.com/questions/404774/why-library-name-gets-an-additional-0-in-its-name">https://stackoverflow.com/questions/404774/why-library-name-gets-an-additional-0-in-its-name</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>