Hi,

This did the trick for compiling tcpdump! The next problem I am having is
compiling fileutils with ncurses instead of termcap. I think the only
binary that comes up requiring termcap is ls. If I do 'make
LDFLAGS=-lncurses' it ends up requiring termcap and ncurses! How can I
exclude a lib from being used?

TTYL,
Adi

On Sat, 12 Aug 2000, Keith Owens wrote:

> On Sat, 12 Aug 2000 02:32:07 -0500 (CDT), 
> Adi Linden <[EMAIL PROTECTED]> wrote:
> >I am trying to build a couple of binaries that require a lib which isn't
> >used anywhere else on the system. How can I specify particular libraries
> >to be linked statically? The -static flag works but links everything
> >static which makes the binary huge. Is there a way to single out just a
> >single specific lib to link statically?
> 
> >From ksymoops/Makefile
> 
> $(CC) $(OBJECTS) $(CFLAGS) -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -o $@
> 
> Makes libbfd and libiberty static, everything else is dynamic.  Credit
> goes to HJ Lu.
> 


--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to