# HG changeset patch # User Sadrul Habib Chowdhury # Date 1220285341 0 # Node ID db4400f75dd8dc6890454dd227f91616e39d73d7 # Parent e339b3429965b484f005043a69b0cf952c303625 Fix compiling 'make plugin.so' when srcdir != builddir diff -r e339b3429965 -r db4400f75dd8 libpurple/plugins/Makefile.am --- a/libpurple/plugins/Makefile.am Mon Sep 01 14:11:51 2008 +0000 +++ b/libpurple/plugins/Makefile.am Mon Sep 01 16:09:01 2008 +0000 @@ -150,7 +150,7 @@ # SUFFIXES = .c .so .c.so: - $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_builddir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS) @rm -f tmp$@.lo tmp$@.o libtmp$@.la @cp .libs/libtmp$@.so* $@