annotate libpurple/protocols/silc10/Makefile.am @ 24332:2b62300d2c19

Use libtool to build static archives when --with-static-prpls is passed to configure. Does anyone know why we weren't using libtool before? We were building old-fashioned .a files. But libtool archives (.la) can contain either static or shared libraries. I found it a lot easier to get static prpl compilation working after making this change (that is to say, it worked). Without this I got this error, which is probably fixable, but consistently using libtool seems like it makes things easier: *** Warning: Linking the shared library libpurple.la against the *** static library ../libpurple/protocols/msn/libmsn.a is not portable! /usr/bin/ld: ../libpurple/protocols/msn/libmsn.a(libmsn_a-msn.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ../libpurple/protocols/msn/libmsn.a: could not read symbols: Bad value collect2: ld returned 1 exit status
author Mark Doliner <mark@kingant.net>
date Wed, 12 Nov 2008 11:30:51 +0000
parents ba1b50f114f6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24332
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
1 EXTRA_DIST = \
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
2 Makefile.mingw \
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
3 README \
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
4 TODO
17805
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
5
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
6 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
7
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
8 SILCSOURCES = silc.c silcpurple.h buddy.c chat.c ft.c ops.c pk.c util.c wb.c wb.h
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
9
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
10 AM_CFLAGS = $(st)
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
11
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
12 libsilcpurple_la_LDFLAGS = -module -avoid-version
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
13
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
14 if STATIC_SILC
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
15
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
16 st = -DPURPLE_STATIC_PRPL $(SILC_CFLAGS)
24332
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
17 noinst_LTLIBRARIES = libsilcpurple.la
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
18 libsilcpurple_la_SOURCES = $(SILCSOURCES)
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
19 libsilcpurple_la_CFLAGS = $(AM_CFLAGS)
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
20 libsilcpurple_la_LIBADD = $(SILC_LIBS)
17805
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
21
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
22 else
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
23
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
24 st = $(SILC_CFLAGS)
24332
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
25 pkg_LTLIBRARIES = libsilcpurple.la
17805
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
26 libsilcpurple_la_SOURCES = $(SILCSOURCES)
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
27 libsilcpurple_la_LIBADD = $(GLIB_LIBS) $(SILC_LIBS)
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
28
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
29 endif
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
30
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
31 AM_CPPFLAGS = \
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
32 -I$(top_srcdir)/libpurple \
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
33 -I$(top_builddir)/libpurple \
24332
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
34 $(DEBUG_CFLAGS) \
17805
ba1b50f114f6 Duplicate the current SILC prpl as silc10 for backwards compatibility with
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
35 $(GLIB_CFLAGS) \
24332
2b62300d2c19 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents: 17805
diff changeset
36 $(SILC_CFLAGS)