LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-10-2007, 01:28 PM   #1
clydemaxwell
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)
 
  


Reply


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 04:54 PM
Linking a static library to a dynamic one delta4s Programming 2 09-28-2006 02:24 AM
building glibc 2.3.5 for static linking. rekhakp Linux - Software 0 04-26-2005 01:17 PM
static linking to c library lantern Programming 1 04-19-2004 09:58 AM
Static/dynamic linking ugenn Linux - Software 0 12-16-2002 12:01 AM


All times are GMT -5. The time now is 09:03 PM.

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