#101 Link only Foundation against libdl and librt

open
nobody
None
5
2012-09-14
2012-01-07
Anonymous
No

Hi,

in Debian we are using the attached patch in order to:

1) link only the Foundation library against -ldl and -lrt (other libraries don't need to),
2) link both on GNU/Linux and GNU/kFreeBSD platforms.

These changes works on Debian GNU/Linux and GNU/kFreeBSD, but could/should be adopted by other platforms too.

Discussion

  •  
    Attachments
  • Basically not a bad idea. However, the patch in its current form would break static builds (used mostly for embedded Linux targets) where we need to link the resulting executable with -ldl and -lrt.

     
  • Cristian Greco
    Cristian Greco
    2012-01-07

    Hi Guenter,

    thanks for consideration. While we are at it, given that static building does not seem to work for me, could you please have a look at bug #3435067?