summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.libnames.mk4
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}
OpenPOWER on IntegriCloud