Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question static linking in debian?

    Hi all

    I'm trying to build a cd with a few utils, without loading a full-blown distribution. So I'm loading everything into the initrd. I knew I'd need the associated libraries, but I have been running into some troubles. I thought it might help to just use as many statically linked executables as possible -- dialog, ssh, etc.

    The question is, how do I do that? I apt-get source dialog, for example, and then ./configure and edit the resultant makefile to include -static on the LDFLAGS line...but it doesn't seem to be working. ldd /usr/bin/local/dialog returns 'not a dynamic executable' instead of 'statically linked'.

    If anyone has any ideas, it would be really appreciated. If not, I guess I could try to find a lightweight livecd (but I'd rather that be a last resort)

  2. #2

    I know this old thread , but it is still interesting


    if someone can help, it will be great.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts