summaryrefslogtreecommitdiff
path: root/modules/pam_tally/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_tally/Makefile.am')
-rw-r--r--modules/pam_tally/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/pam_tally/Makefile.am b/modules/pam_tally/Makefile.am
index 72a70401..ffb88886 100644
--- a/modules/pam_tally/Makefile.am
+++ b/modules/pam_tally/Makefile.am
@@ -17,9 +17,9 @@ secureconfdir = $(SCONFIGDIR)
noinst_HEADERS = faillog.h
AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include
-AM_LDFLAGS = -L$(top_builddir)/libpam -lpam
-pam_tally_la_LDFLAGS = -no-undefined -avoid-version -module
+pam_tally_la_LDFLAGS = -no-undefined -avoid-version -module \
+ -L$(top_builddir)/libpam -lpam
if HAVE_VERSIONING
pam_tally_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
endif
@@ -28,6 +28,7 @@ securelib_LTLIBRARIES = pam_tally.la
sbin_PROGRAMS = pam_tally
pam_tally_SOURCES = pam_tally_app.c
+pam_tally_LDFLAGS = -L$(top_builddir)/libpam -lpam
if ENABLE_REGENERATE_MAN
noinst_DATA = README