aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam/modules/Makefile.inc
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-04-14 01:17:03 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-04-14 01:17:03 +0000
commit7cbd0a2953a27e74f8b1b261808068719c1f5260 (patch)
tree71e89abc8204df2fa8e108073d7c39eecd2f59ca /lib/libpam/modules/Makefile.inc
parent2d57dc7e6e01f3e8166db91ab1be0cd8f19ef0f2 (diff)
downloadsrc-7cbd0a2953a27e74f8b1b261808068719c1f5260.tar.gz
src-7cbd0a2953a27e74f8b1b261808068719c1f5260.zip
Simplify building libpam and fix libpam.a not containing the modules since r284345.
The change in r284345 moved the creation of openpam_static_modules.o to lib/libpam/static_modules but never managed to get them into libpam.a. Move this logic to lib/libpam/static_libpam and have it create a static library for libpam.a The main lib/libpam/libpam will only create a shared library. No redundancy in compilation or installation exists in this solution. This avoids requiring a pass with -D_NO_LIBPAM_SO_YET. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=297946
Diffstat (limited to 'lib/libpam/modules/Makefile.inc')
-rw-r--r--lib/libpam/modules/Makefile.inc7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/libpam/modules/Makefile.inc b/lib/libpam/modules/Makefile.inc
index 2da5a7b524ad..899c3cbbc8f6 100644
--- a/lib/libpam/modules/Makefile.inc
+++ b/lib/libpam/modules/Makefile.inc
@@ -7,14 +7,7 @@ MK_PROFILE= no
CFLAGS+= -I${PAMDIR}/include -I${.CURDIR}/../../libpam
-# This is nasty.
-# For the static case, libpam.a depends on the modules.
-# For the dynamic case, the modules depend on libpam.so.N
-.if defined(_NO_LIBPAM_SO_YET)
-NO_PIC=
-.else
SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR}
LIBADD+= pam
-.endif
.include "../Makefile.inc"