Date: Sat, 10 Apr 1999 09:14:51 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: Mark Murray <mark@grondar.za> Cc: current@freebsd.org Subject: RE: Libraries with library dependancies Message-ID: <XFMail.990410091451.jdp@polstra.com> In-Reply-To: <199904100848.KAA93819@greenpeace.grondar.za>
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Murray wrote:
>
> The "undefined references" are all in libmd which is listed as above
> in libcrypt's Makefile.
>
> I would hate to have to hunt down all usages of -lcrypt to add -lmd.
As Peter already mentioned, the problem is that library dependencies
aren't recorded in archive libraries.
I ran into a similar problem for static PAM. After some discussion
with Bruce, I held my nose and put this into bsd.libnames.mk:
# The static PAM library doesn't know its secondary dependencies,
# so we have to specify them explictly.
LIBPAM?= ${DESTDIR}${LIBDIR}/libpam.a # XXX doesn't exist
MINUSLPAM?= -lpam
.if defined(NOSHARED) && ${NOSHARED} != "no" && ${NOSHARED} != "NO"
.ifdef MAKE_KERBEROS4
LIBPAM+= ${LIBKRB} ${LIBDES}
MINUSLPAM+= -lkrb -ldes
.endif
LIBPAM+= ${LIBRADIUS} ${LIBTACPLUS} ${LIBSKEY} ${LIBCRYPT} ${LIBMD}
MINUSLPAM+= -lradius -ltacplus -lskey -lcrypt -lmd
.endif
Then in utilities such a login:
DPADD+= ${LIBPAM}
LDADD+= ${MINUSLPAM}
This could get out of hand pretty quickly, but it may be the most
reasonable solution at this time.
John
---
John Polstra jdp@polstra.com
John D. Polstra & Co., Inc. Seattle, Washington USA
"Self-interest is the aphrodisiac of belief." -- James V. DeLong
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990410091451.jdp>
