Makefile: add missing libraries to LDLIBS
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 14 Aug 2015 06:50:00 +0000 (08:50 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Aug 2015 15:05:55 +0000 (17:05 +0200)
commitbb2fd67d0bfe16441d4b1d2e6ece83b04955b379
tree574e0b495f07413ba7c4bb236e10591469a8b50d
parent718e228adcd7b9592b504b55217d13f4216a0450
Makefile: add missing libraries to LDLIBS

Static build with CONFIG_PAM fails on Debian Jessie due to undefined
references to libdl and libaudit.

Static build without pam, but with libcrypt required fails as well due
to undefined references to libpthread.

Fix these two cases by adding the missing libraries to LDLIBS when
appropriate.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile.flags