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.
This commit is contained in:
Bastien Nocera
2020-01-24 15:20:56 +01:00
parent 5a8da0022a
commit 8fbc59a258

View File

@ -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