From 8fbc59a258b72769d3a7b6bd6496b5ad8b0d1d24 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 24 Jan 2020 15:20:56 +0100 Subject: [PATCH] pam: Allow unloading libs that pam_fprintd is linked to Remove "nodelete" linker flag now that we use sd-bus and not dbus-glib, so that libraries that pam_fprintd links to can be unloaded. This was added because GLib's type system expects to be initialised once and only once per process, and re-loading this type system when it had already been initialised caused crashes. --- pam/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pam/Makefile.am b/pam/Makefile.am index a5a9538..af57d17 100644 --- a/pam/Makefile.am +++ b/pam/Makefile.am @@ -5,7 +5,7 @@ pammoddir=$(libdir)/security pam_fprintd_la_SOURCES = pam_fprintd.c pam_fprintd_la_CFLAGS = -fPIC $(WARN_CFLAGS) $(PAM_MODULE_CFLAGS) -DLOCALEDIR="\"$(localedir)\"" -pam_fprintd_la_LDFLAGS = -avoid-version -module -Wl,-z,nodelete +pam_fprintd_la_LDFLAGS = -avoid-version -module pam_fprintd_la_LIBADD = $(PAM_LIBS) $(PAM_MODULE_LIBS) endif