diff plugins/perl/Makefile.am @ 11862:f8cd06753755

[gaim-migrate @ 14153] Make "make distcheck" work, which also makes the perl plugin loader loadable when installed to a non-standard prefix (it still can't find Gaim.pm though) Add some extra warning CFLAGS if a) --enable-debug was used and b) your compiler supports them. Plug a couple of leaks The gaimrc plugin's GtkTreeView expander_size setting now works (but doesn't seem to instant-apply - should it?) staticify some functions that don't need to be exposed probably something else I forgot about committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 27 Oct 2005 20:43:43 +0000
parents 519dc2186438
children cf5243edcba0
line wrap: on
line diff
--- a/plugins/perl/Makefile.am	Thu Oct 27 20:22:27 2005 +0000
+++ b/plugins/perl/Makefile.am	Thu Oct 27 20:43:43 2005 +0000
@@ -2,10 +2,10 @@
 
 perl_dirs = common
 
-plugin_LTLIBRARIES = perl.la 
+plugin_LTLIBRARIES = perl.la libgaimperl.la
 
 perl_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) $(PERL_LIBS)
-perl_la_LIBADD = $(PERL_LIBS) -L. -lgaimperl
+perl_la_LIBADD = $(PERL_LIBS) -L.libs -lgaimperl
 perl_la_SOURCES = \
 	perl.c \
 	perl-common.c \
@@ -16,10 +16,10 @@
 perl_la_DEPENDENCIES = \
 	.libs/libperl_orig.a \
 	.libs/DynaLoader.a \
-	libgaimperl.so
+	libgaimperl.la
 
-libgaimperl.so:
-	$(CC) -shared -fPIC -olibgaimperl.so libgaimperl.c	
+libgaimperl_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS)
+libgaimperl_la_SOURCES = libgaimperl.c
 
 .libs/libperl_orig.a:
 	@mkdir -p .libs
@@ -114,9 +114,9 @@
 		$(MAKE) install; \
 		cd ..; \
 	done
-	cp libgaimperl.so $(libdir)
 
 # Evil Hack (TM)
+# ... which doesn't work with DESTDIR installs. FIXME?
 uninstall-local:
 	@for dir in $(perl_dirs); do \
 		cd $$dir && \