chaps: Update Makefile for Linux build

 - Turn on exception support, needed for D-Bus C++ library.
 - Set SONAME in libchaps.0.so if CHAPS_VERSION_MAJOR specified.
 - Ensure PAM module links with libpam.

BUG=None
TEST=Chaps unit tests (with ASAN) plus PKCS11 tests

Change-Id: I2aab22dedc248ac1f7ce5d34a9d7918960b8c488
Reviewed-on: https://chromium-review.googlesource.com/221930
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Tested-by: David Drysdale <drysdale@google.com>
Commit-Queue: David Drysdale <drysdale@google.com>
1 file changed