Use libtool for pam_dbus
authorJoachim Breitner <mail@joachim-breitner.de>
Thu, 30 Oct 2008 23:02:28 +0000 (23:02 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Thu, 30 Oct 2008 23:02:28 +0000 (23:02 +0000)
src/Makefile.am

index 7d885a0..d640400 100644 (file)
 AM_CFLAGS = -DSBINDIR=\"@sbindir@\" @GLIB_CFLAGS@ @DBUS_CFLAGS@ @DBUS_GLIB_CFLAGS@
 
 pamdir = @PAM_MODDIR@
-pam_PROGRAMS = pam_dbus.so
+pam_LTLIBRARIES = pam_dbus.la
 
-pam_dbus_so_SOURCES = pam_dbus.c
-pam_dbus_so_LDFLAGS = -shared --strip-all
-
-pam_dbus_so_LDADD = @DBUS_GLIB_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@
-pam_dbus_so_CFLAGS = $(AM_CFLAGS)
+pam_dbus_la_SOURCES = pam_dbus.c
+pam_dbus_la_LDFLAGS = -module -avoid-version
+pam_dbus_la_LIBADD = @DBUS_GLIB_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@
+pam_dbus_la_CFLAGS = $(AM_CFLAGS)