diff --git a/lib/libpam/libpam/Makefile b/lib/libpam/libpam/Makefile index e544dccd3be5..8cd3095d74c1 100644 --- a/lib/libpam/libpam/Makefile +++ b/lib/libpam/libpam/Makefile @@ -30,7 +30,7 @@ PAMDIR= ${.CURDIR}/../../../contrib/libpam LIB= pam CFLAGS+= -I${PAMDIR}/libpam/include -I. -CFLAGS+= -DDEFAULT_MODULE_PATH=\"${LIBDIR}/\" +CFLAGS+= -DDEFAULT_MODULE_PATH=\"${SHLIBDIR}/\" CFLAGS+= -DPAM_DYNAMIC #CFLAGS+= -DPAM_STATIC NOPROFILE= true diff --git a/lib/libpam/modules/Makefile.inc b/lib/libpam/modules/Makefile.inc index 16b4c5a40263..2e293716f70e 100644 --- a/lib/libpam/modules/Makefile.inc +++ b/lib/libpam/modules/Makefile.inc @@ -24,5 +24,5 @@ # # $FreeBSD$ -BINDIR= ${LIBDIR} +BINDIR= ${SHLIBDIR} BINMODE= ${LIBMODE}