build: drop LDADD and use LDFLAGS
Drop LDADD line and use LDFLAGS for the additional library pieces.
Change-Id: Ie75c0ccf7046d15e51756f83b4883e9aafe0e23c
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/Makefile.am b/Makefile.am
index 7e681b5..968d3db 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,9 +5,18 @@
securelib_LTLIBRARIES = pam_ipmicheck.la pam_ipmisave.la
pam_ipmicheck_la_SOURCES = src/pam_ipmicheck/pam_ipmicheck.c
-pam_ipmicheck_la_LDFLAGS = -module -avoid-version -shared
-pam_ipmicheck_LDADD = $(LIBPAM) $(LIBCRYPT)
+pam_ipmicheck_la_LDFLAGS = \
+ -module \
+ -avoid-version \
+ -shared \
+ $(LIBPAM) \
+ $(LIBCRYPT)
pam_ipmisave_la_SOURCES = src/pam_ipmisave/pam_ipmisave.c
-pam_ipmisave_la_LDFLAGS = -module -avoid-version -shared -lssl
-pam_ipmisave_LDADD = $(LIBPAM) $(LIBCRYPT)
+pam_ipmisave_la_LDFLAGS = \
+ -module \
+ -avoid-version \
+ -shared \
+ -lssl \
+ $(LIBPAM) \
+ $(LIBCRYPT)