diff options
Diffstat (limited to 'modules/pam_pwdb/Makefile.am')
-rw-r--r-- | modules/pam_pwdb/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/pam_pwdb/Makefile.am b/modules/pam_pwdb/Makefile.am index 330ce3d2..62f9d705 100644 --- a/modules/pam_pwdb/Makefile.am +++ b/modules/pam_pwdb/Makefile.am @@ -16,9 +16,12 @@ secureconfdir = $(SCONFIGDIR) AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ -I$(top_srcdir)/modules/pammodutil/include/ \ -DCHKPWD_HELPER=\"$(sbindir)/$(CHKPWD)\" -AM_LDFLAGS = -avoid-version -module \ +AM_LDFLAGS = -no-undefined -avoid-version -module \ -L$(top_builddir)/modules/pammodutil -lpammodutil \ -L$(top_builddir)/libpam -lpam @LIBCRYPT@ @LIBPWDB@ +if HAVE_VERSIONING + AM_LDFLAGS += -Wl,--version-script=../modules.map +endif if HAVE_LIBPWDB securelib_LTLIBRARIES = pam_pwdb.la |