home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.gentoo      Stupid OS you gotta compile EVERYTHING      17,684 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 15,745 of 17,684   
   Martin Vaeth to Arthur Hagen   
   Re: Gentoo now links with every lib?   
   15 Aug 07 08:00:59   
   
   From: vaeth@mathematik.uni-wuerzburg.de   
      
   Arthur Hagen  wrote:   
   >>   
   >>> Do anyone know of a way to get the old functionality back, where   
   >>> only the libraries that are needed for a package gets linked,   
   >>> instead of linking against everything and its dog?   
      
   Add -Wl,--as-needed to your LDFLAGS in /etc/make.conf   
   (I was previously thinking that this flag should not be needed for   
   properly written software, but unfortunately many libraries are not   
   properly written).   
      
   > No, this isn't due to use flags (at least not directly), cause linking of   
   > apps that do /not/ use opengl and do not have an opengl use flag either now   
   > links against opengl if a dependent library links to a library which links   
   > to a library which /can/ use OpenGL.  Deep linking, in other words, which   
   > is a horrible thing.   
      
   AFAIK, this is a design flaw of some libraries, essentially due to these   
   horrible autotools: the configuration of these libraries simply   
   always return a huge list of -l...-Flags, no matter whether a   
   feature of that other library might be needed or not.   
   It appears tha the "-Wl,-as-needed" LDFLAG is no the "official"   
   solution of Gentoo for these design flaws (although, of course,   
   this flag is dangerous and might break other things).   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca