[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: router and libraries



Hi!

On Tue, Sep 23, 2003 at 15:21 +0300, Matti Aarnio wrote:

> On Tue, Sep 23, 2003 at 02:00:27PM +0200, Xose Vazquez Perez wrote:
> > hi,
> > 
> > looks like router is linked with several libraries not specified into
> > ./configure command line with "--with" option:
> 
>   It has always done so.  Lets look deeper.
> 
> > --cut--
> > export DESTDIR=/tmp/z
> > 
> > ./configure \
> >         --includedir=/usr/include/zmailer \
> >         --libdir=/usr/lib/ \
> >         --mandir=/usr/share/man \
> >         --prefix=$DESTDIR \
> ...
> > --end--
> > 
> > # ldd router
> >         libcrypt.so.1 => /lib/libcrypt.so.1 (0x40034000)
> 
>   Don't know what pulls that in.

GETPWLIB variable from configure do it ;)

configure script:
 ...
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    if test "$ac_cv_lib_crypt_lib" = yes; then
        # Success with this flag..
        GETPWLIB="$GETPWLIB -lcrypt"
        echo "$as_me:$LINENO: result: crypt() was found by using -lcrypt  library!" >&5
echo "${ECHO_T}crypt() was found by using -lcrypt  library!" >&6
    fi
    LIBS="$t_oldLibs"
fi

router/Makefile.in:
 ...
ROUTER_LIB=     @GETPWLIB@ @LIBDBMS@ @LIBNIS@ @LIBRESOLV@ @LIBSOCKET@ @GENLIB@


In my configuration router can be successfully linked without "-lcrypt".

-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi