[MacPorts] #23899: libsdl_mixer static lib linked with dynamic dependencies

MacPorts noreply at macports.org
Tue Mar 2 03:55:40 PST 2010


#23899: libsdl_mixer static lib linked with dynamic dependencies
-------------------------------+--------------------------------------------
 Reporter:  domiman@…          |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.8.2                                
 Keywords:                     |        Port:  libsdl_mixer                         
-------------------------------+--------------------------------------------

Comment(by domiman@…):

 I had an error in my thinking. I thought that when you give these
 ./configure options libsdl_mixer would link with the static libs of its
 dependencies when it is built. BUT using these ./configure options mean,
 that when you want to use the static lib of libsdl_mixer in a project you
 need to make sure the project links to the static libs of libsdl_mixer's
 dependencies as well.
 I tested this a bit and IMO the ./configure options
 {{{
 --disable-music-mp3-shared \
 --disable-music-ogg-shared \
 --disable-music-flac-shared
 }}}
 should go into the portfile. These seem to affect only the static lib (so
 it doesn't link against the dynamic libs of its dependencies). Building a
 project linking dynamically to libsdl_mixer still works as it should
 (libsdl_mixer links dynamically to its dependencies).

-- 
Ticket URL: <http://trac.macports.org/ticket/23899#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list