diff options
author | ru <ru@FreeBSD.org> | 2002-11-14 19:24:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-11-14 19:24:51 +0000 |
commit | 6db7cbc3e1e966ba335f0e1076e7fac81881772c (patch) | |
tree | 1dbbd4e6702edd78dbe1db6013aa11812c87f48b /lib/libpam/modules | |
parent | a8d7a2247167e271721f1c089f5466e9373b1751 (diff) | |
download | FreeBSD-src-6db7cbc3e1e966ba335f0e1076e7fac81881772c.zip FreeBSD-src-6db7cbc3e1e966ba335f0e1076e7fac81881772c.tar.gz |
Make dynamic PAM modules depend on dynamic PAM library.
Requested by: des, markm
Diffstat (limited to 'lib/libpam/modules')
-rw-r--r-- | lib/libpam/modules/Makefile.inc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libpam/modules/Makefile.inc b/lib/libpam/modules/Makefile.inc index 2b06dea..cdfe599 100644 --- a/lib/libpam/modules/Makefile.inc +++ b/lib/libpam/modules/Makefile.inc @@ -4,7 +4,6 @@ PAMDIR= ${.CURDIR}/../../../../contrib/openpam NOINSTALLLIB= yes NOPROFILE= yes -SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR} CFLAGS+= -I${PAMDIR}/include CFLAGS+= -I${.CURDIR}/../../libpam @@ -14,8 +13,12 @@ NO_WERROR= yes # This is nasty. # For the static case, libpam.a depends on the modules. # For the dynamic case, the modules depend on libpam.so.N -# Punt for the time being until I can figure out how to do it. -#DPADD+= ${LIBPAM} -#LDADD+= -lpam +.if defined(_NO_LIBPAM_SO_YET) +NOPIC= YES +.else +SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR} +DPADD+= ${LIBPAM} +LDADD+= -lpam +.endif .include "../Makefile.inc" |