libpam: Play some 4D chess for static pam modules support.
commit0521e8db4c6bf27167bedeb20789021db94252e0
authorzrj <rimvydas.jasinskas@gmail.com>
Thu, 9 Nov 2017 14:57:23 +0000 (9 16:57 +0200)
committerzrj <zrj@dragonflybsd.org>
Fri, 10 Nov 2017 17:44:50 +0000 (10 19:44 +0200)
tree2d9f7cd76e8a6c42fb7a649a3af5caed8ab0eaf1
parent242be47e2206d44451f1e1b27f7966e08c0620c8
libpam: Play some 4D chess for static pam modules support.

We need A, B, C and D. C depends on A, B depends on D, A&B and C&D are both
built in pairs. So split A&B and hope for the best.

PAM modules were moved in closer to support this in the previous commit.
Also use workaround to get matching set pointers. Might be a pam bug.
Now su(1), login(1) and friends are usable in -static compilations with
pending buildworld support patches.

No functional change to usual case of shared libpam.so.

Partially-taken-from: FreeBSD
lib/libpam/Makefile
lib/libpam/Makefile.inc
lib/libpam/libpam/Makefile
lib/libpam/modules/Makefile.inc
lib/libpam/static_libpam/Makefile [new file with mode: 0644]