[AD] [ alleg-Bugs-2971919 ] ADDON_LINKAGE should be set to SHARED for UNIX (Linux)

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


Bugs item #2971919, was opened at 2010-03-17 14:26
Message generated for change (Tracker Item Submitted) made by ssuominen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2971919&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Samuli Suominen (ssuominen)
Assigned to: Nobody/Anonymous (nobody)
Summary: ADDON_LINKAGE should be set to SHARED for UNIX (Linux)

Initial Comment:
For some reason, allegro 4.4.1.1 has CMakeLists.txt set to build only static archive out of jpgalleg, loadpng, allegrogl and logg, a.k.a. addons. It makes sense to build shared libs also on Linux.

Expected outcome is:

/usr/lib64/libjpgalleg.so.4.4.1
/usr/lib64/libloadpng.so.4.4
/usr/lib64/liballeggl.so
/usr/lib64/liballeggl.so.4.4.1
/usr/lib64/liblogg.so.4.4.1
/usr/lib64/liblogg.so
/usr/lib64/liballeg.so
/usr/lib64/libjpgalleg.so.4.4
/usr/lib64/liblogg.so.4.4
/usr/lib64/libjpgalleg.so
/usr/lib64/liballeg.so.4.4
/usr/lib64/libloadpng.so
/usr/lib64/liballeg.so.4.4.1
/usr/lib64/liballeggl.so.4.4
/usr/lib64/libloadpng.so.4.4.1

I've worked this around by:

--- CMakeLists.txt
+++ CMakeLists.txt
@@ -830,7 +830,7 @@
 option(WANT_LOGG "Enable logg" on)
 option(WANT_JPGALLEG "Enable JPGAlleg" on)
 
-if(WANT_FRAMEWORKS)
+if(SHARED)
     set(ADDON_LINKAGE SHARED)
 else()
     set(ADDON_LINKAGE STATIC)


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

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




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