#58 Fixing static build on Windows

None
closed
nobody
Windows (6)
5
2015-03-23
2011-06-02
Zac Evans
No

As I discussed with Elias here: http://www.allegro.cc/forums/thread/607408
The current cmake settings produce broken static libraries for Windows. (ie. it compiles fine, but non-trivial statically linked Allegro programs will crash.)

The problem is that ALLEGRO_CFG_DLL_TLS doesn't work with static linking.
The patch I've attached simply tells cmake not to define ALLEGRO_CFG_DLL_TLS when building the static libraries.

I've tested this on Windows 7 and it seems to work.

Discussion

  • Zac Evans

    Zac Evans - 2011-06-02

    fixes static linking on Windows

     
  • Trent Gamblin

    Trent Gamblin - 2011-06-02

    Looks good. I'll apply it.

     
  • SiegeLord

    SiegeLord - 2015-03-23
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks