aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam/libpam/Makefile
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-01-24 19:09:38 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-01-24 19:09:38 +0000
commit6579d1464d0b206102847c432a0ab5d2b66e8d74 (patch)
treec156c6a09206287e07410514cac4c009c125fa9a /lib/libpam/libpam/Makefile
parent63478911d0911299395cd58b6eccd4cdd094f12a (diff)
downloadsrc-6579d1464d0b206102847c432a0ab5d2b66e8d74.tar.gz
src-6579d1464d0b206102847c432a0ab5d2b66e8d74.zip
Move build of openpam_static_modules.o to its own subdir
to avoid circular dependency b/w libpam and modules. Reviewed by: obrien
Notes
Notes: svn path=/projects/bmake/; revision=245892
Diffstat (limited to 'lib/libpam/libpam/Makefile')
-rw-r--r--lib/libpam/libpam/Makefile23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/libpam/libpam/Makefile b/lib/libpam/libpam/Makefile
index b57a38e7b543..a4aad999edfe 100644
--- a/lib/libpam/libpam/Makefile
+++ b/lib/libpam/libpam/Makefile
@@ -166,29 +166,6 @@ HEADERS= security/openpam.h \
ADD_HEADERS= security/pam_mod_misc.h
-#
-# Static modules
-#
-# We build static versions of all modules and of openpam_static.o,
-# then link them all together into openpam_static_modules.o. None of
-# the modules export any symbols, but they store structures with
-# pointers to their service functions in a linker set which the code
-# in openpam_static.c traverses to locate the individual modules.
-#
-MODULE_DIR= ../modules
-.include "${.CURDIR}/${MODULE_DIR}/modules.inc"
-STATIC_MODULES= ${MODULES:C/.*/${MODULE_DIR}\/&\/lib&.a/}
-STATICOBJS+= openpam_static_modules.o
-CLEANFILES+= openpam_static.o \
- openpam_static_modules.o
-
-openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
- ${LD} -o ${.TARGET} -r --whole-archive ${.ALLSRC}
-
-# We can't put openpam_static.c in SRCS, but we still want to scan it
-# for dependencies.
-DPSRCS= openpam_static.c
-
# Headers
INCS= ${HEADERS} ${ADD_HEADERS}
INCSDIR= ${INCLUDEDIR}/security