[AD] Allegro 4.4.git conflicting dllmain and patch to build addon libraries dynamically

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


In latest git for Allegro 4.4.X allegro does not build with mingw due to a conflicting declaration of dllmain in wsystem.c. There is already a declaration in
winbase.h.

I made a thread about it on a.cc here :

https://www.allegro.cc/forums/thread/614953


Also, here is a patch to enable building of dynamic libraries for the addons :

https://d1cxvcw9gjxu2x.cloudfront.net/attachments/609133


--- CMakeLists.old.txt	2015-01-03 16:35:21.895331800 -0600
+++ CMakeLists.txt	2015-01-03 16:35:51.803573800 -0600
@@ -918,12 +918,17 @@
 option(WANT_LOGG "Enable logg" on)
 option(WANT_JPGALLEG "Enable JPGAlleg" on)
 
-if(WANT_FRAMEWORKS)
+if (BUILD_SHARED_LIBS)
     set(ADDON_LINKAGE SHARED)
 else()
     set(ADDON_LINKAGE STATIC)
 endif()
 
+if(WANT_FRAMEWORKS)
+    set(ADDON_LINKAGE SHARED)
+endif()
+
+
 if(WANT_ALLEGROGL)
     add_subdirectory(addons/allegrogl)
 endif()


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