summaryrefslogtreecommitdiff
path: root/libpam_misc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libpam_misc/Makefile')
-rw-r--r--libpam_misc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpam_misc/Makefile b/libpam_misc/Makefile
index e9b1a6c1..16ba07e6 100644
--- a/libpam_misc/Makefile
+++ b/libpam_misc/Makefile
@@ -84,7 +84,11 @@ install: all
ifeq ($(DYNAMIC_LIBPAM),yes)
$(MKDIR) $(FAKEROOT)$(libdir)
$(INSTALL) -m $(SHLIBMODE) $(LIBNAMED) $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
+ifndef FAKEROOT
$(LDCONFIG)
+else
+ $(LDCONFIG) -n $(FAKEROOT)$(libdir)
+endif
ifneq ($(DYNTYPE),"sl")
( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) ; ln -s $(LIBNAMEDNAME) $(LIBNAMED) )
endif