[AD] [ alleg-Patches-3310412 ] Fixing static build on Windows

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Patches item #3310412, was opened at 2011-06-02 12:12
Message generated for change (Tracker Item Submitted) made by karadoc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=3310412&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Zac Evans (karadoc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fixing static build on Windows

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=3310412&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/