From bbde328be4e75ea9ad02e9715ea13ca54b797ada Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 3 May 2010 22:12:32 +0000 Subject: Build the modules in two phases: 1. build the static modules first, before libpam so that the static libpam can link against the module .a files. 2. build the modules after the dynamic libpam is build, so that the dynamic modules can link against the dynamic libpam. --- lib/libpam/modules/mod.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libpam/modules') diff --git a/lib/libpam/modules/mod.mk b/lib/libpam/modules/mod.mk index 1660fdf6697..ed6abc0a1fd 100644 --- a/lib/libpam/modules/mod.mk +++ b/lib/libpam/modules/mod.mk @@ -1,4 +1,4 @@ -# $NetBSD: mod.mk,v 1.8 2010/05/03 12:58:09 christos Exp $ +# $NetBSD: mod.mk,v 1.9 2010/05/03 22:12:32 christos Exp $ NOLINT= # don't build a lint library NOPROFILE= # don't build a profile library @@ -15,9 +15,8 @@ LIBDIR=/usr/lib/security .endif WARNS=3 -LIBDPLIBS+= pam ${.CURDIR}/../../libpam - .if ${MKPIC} != "no" +LIBDPLIBS+= pam ${.CURDIR}/../../libpam .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} .else -- cgit