Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1302 Libtool refuses to link dlls with some DirectX libraries

OTHER
closed
nobody
libtool (3)
out-of-date
Known_bugs
2013-01-25
2009-06-17
LRN
No

Namely, libdxguid.a and libdxerr9.a. Whenever a dll that depends on these libraries is being linked together, libtool complains that it can't find real .dll files for these libraries and refuses to create the .dll file (only creates the .a file).

So, there are two ways of fixing that (besides fixing libtool):
1) Go around libtool by passing a library dependency through -Wl (that is, "-Wl,-ldxguid" instead of "-ldxguid"). This way libtool won't make its checks for that library and won't fail. Obviously, that requires some changes to the application build system (in my case that's configure.ac)

2) Satisfy libtool by providing the corresponding .la file. There is no libdxerr9.la file in w32api package, so i had to create libdxerr9.la (attached) and libdxguid.la. While i am not completely sure, i think ideally there should be one such file for each .a file (at least for ones that do not have corresponding .dll file).

Second way seems to be better (it's kinda easier to include some files into the package rather than hunt for dll-less static libraries and plant -Wl in front of each one).

Discussion

  • LRN
    LRN
    2009-06-17

    .la file for libdxerr9.a

     
    Attachments
  • Earnie Boyd
    Earnie Boyd
    2012-06-14

    • labels: 103945 --> non-mingw
    • milestone: 258437 --> Aged_issue
    • status: open --> closed-out-of-date
     
  • Earnie Boyd
    Earnie Boyd
    2012-06-14

    A fix for this belongs with libtool if it hasn't already been addressed.

     
  • Earnie Boyd
    Earnie Boyd
    2013-01-25

    • labels: non-mingw --> libtool
    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Known_bugs
    • milestone: --> OTHER