summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.libnames.mk
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-01-20 21:48:56 +0000
committerjdp <jdp@FreeBSD.org>1999-01-20 21:48:56 +0000
commitef01c22e1080a19283f19943021d45e9ad3a711f (patch)
tree2a6fdadf41638eade6aeacb2b938bb3f94f266a0 /share/mk/bsd.libnames.mk
parentc5b38af5ff9ae669808d4ff9278268dfdb0d8382 (diff)
downloadFreeBSD-src-ef01c22e1080a19283f19943021d45e9ad3a711f.zip
FreeBSD-src-ef01c22e1080a19283f19943021d45e9ad3a711f.tar.gz
Change the definition of LIBPAM to support the static PAM library.
When linking statically, LIBPAM is augmented with the extra libraries that the PAM modules require. The idea is to centralize this information rather than scattering it about in the Makefiles of all the applications that use (OK, will use) PAM. There is a new variable MINUSLPAM that should be used instead of "-lpam". In the static case, it gets -l flags for the extra required libraries. This approach was suggested by <bde>, but he didn't actually review my changes.
Diffstat (limited to 'share/mk/bsd.libnames.mk')
-rw-r--r--share/mk/bsd.libnames.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/share/mk/bsd.libnames.mk b/share/mk/bsd.libnames.mk
index 91ee34a..a48e7aad 100644
--- a/share/mk/bsd.libnames.mk
+++ b/share/mk/bsd.libnames.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.libnames.mk,v 1.18 1998/09/17 09:34:57 phk Exp $
+# $Id: bsd.libnames.mk,v 1.19 1998/11/18 01:53:56 jdp Exp $
#
# The include file <bsd.libnames.mk> define library names.
# Other include files (e.g. bsd.prog.mk, bsd.lib.mk) include this
@@ -48,7 +48,20 @@ LIBMYTINFO?= ${DESTDIR}${LIBDIR}/libmytinfo.a
LIBNCURSES?= ${DESTDIR}${LIBDIR}/libncurses.a
LIBOBJC?= ${DESTDIR}${LIBDIR}/libobjc.a
LIBOPIE?= ${DESTDIR}${LIBDIR}/libopie.a
+
+# 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
+
LIBPC?= ${DESTDIR}${LIBDIR}/libpc.a # XXX doesn't exist
LIBPCAP?= ${DESTDIR}${LIBDIR}/libpcap.a
LIBPERL?= ${DESTDIR}${LIBDIR}/libperl.a
OpenPOWER on IntegriCloud