Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 01-10-2007, 12:28 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
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)

(cross-posted to linuxforums)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newb: static linking with mcrypt emailbuilder88 Programming 7 07-29-2009 03:54 PM
Linking a static library to a dynamic one delta4s Programming 2 09-28-2006 01:24 AM
building glibc 2.3.5 for static linking. rekhakp Linux - Software 0 04-26-2005 12:17 PM
static linking to c library lantern Programming 1 04-19-2004 08:58 AM
Static/dynamic linking ugenn Linux - Software 0 12-15-2002 11:01 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration