Well, I want to build snmpd with all the snmpd libraries static, so I'm
using:
./configure --with-mib-modules=ip3Mib --enable-ucd-snmp-compatibility --enable-static
--disable-shared --with-ldflags=-Bstatic

However, I *do* need to link in one of my *own* shared libraries!! So I
tried using with-libs:
./configure --with-mib-modules=ip3Mib --with-libs=/usr/src/dlsllib.so
--enable-ucd-snmp-compatibility --enable-static --disable-shared
--with-ldflags=-Bstatic

But then configure aborts with "C compiler cannot create libraries"... Yet,
in looking at the build commands, I note that snmpd is managing to link
other shared libraries (i.e., /usr/lib/libpopt.so) even though I've
specified all the static commands, so there *must* be some way that I can
get it to do the same for me, other than having to manually edit .la
files... ???

Dan

----- Original Message -----
From: "Thomas Anders"
To: "Dan Miller (Kromos)"
Cc:
Sent: Sunday, January 20, 2008 12:32
Subject: Re: shared libraries - do I have a problem??


> Dan Miller (Kromos) wrote:
>> - besides which, how do I tell configure about my own library(ies) ???
>> Previously, I was manually editing agent/Makefile and apps/Makefile after
>> running configure, but that doesn't seem to be working right now, I can't
>> figure out where to add my library anymore. I'm assuming that there's
>> some
>> way to do so, but I couldn't find anything in "configure --help" ...

>
> foo$ ./configure --help | grep LIBS
> --with-libs=LIBS use LIBS as link time arguments to ld.
> LIBS libraries to pass to the linker, e.g. -l
>
> If you're looking for something else, you'd need to give us more details
> to work with.
>
>
> +Thomas
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders