diff options
author | ru <ru@FreeBSD.org> | 2002-11-26 09:00:02 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-11-26 09:00:02 +0000 |
commit | 4f137dfa71fa9d7ceaa5c26af7e0e6ee19a717e5 (patch) | |
tree | f86e20443b5067c8bc69db792aabe9eb014c70c5 /share | |
parent | 7f8c6531d23400bb8100cc6b969146b8192aa122 (diff) | |
download | FreeBSD-src-4f137dfa71fa9d7ceaa5c26af7e0e6ee19a717e5.zip FreeBSD-src-4f137dfa71fa9d7ceaa5c26af7e0e6ee19a717e5.tar.gz |
NOSHARED is meaningless in the bsd.lib.mk context, so check LDFLAGS
for the -static flag instead when constructing LIBPAM.
(This fixes false warnings from ``make checkdpadd -DNOSHARED'' in
lib/libpam/modules/.)
Submitted by: bde, ru
Approved by: re
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.libnames.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.libnames.mk b/share/mk/bsd.libnames.mk index 2e84e60..8e6d126 100644 --- a/share/mk/bsd.libnames.mk +++ b/share/mk/bsd.libnames.mk @@ -66,10 +66,10 @@ 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. +# so we have to specify them explicitly. LIBPAM?= ${DESTDIR}${LIBDIR}/libpam.a MINUSLPAM?= -lpam -.if defined(NOSHARED) && ${NOSHARED} != "no" && ${NOSHARED} != "NO" +.if defined(LDFLAGS) && !empty(LDFLAGS:M-static) .if defined(MAKE_KERBEROS4) || defined(MAKE_KERBEROS5) .ifdef MAKE_KERBEROS4 LIBPAM+= ${LIBKRB} |