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
This commit is contained in:
parent
3cea219898
commit
43e927ec32
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user