Mercurial > pidgin
annotate libpurple/protocols/silc/Makefile.am @ 24389: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 | 441945083737 |
children | adf153852bcf |
rev | line source |
---|---|
24389
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
1 EXTRA_DIST = \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
2 Makefile.mingw \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
3 README \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
4 TODO |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
5 |
16583
ce049678a67b
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <stu@nosnilmot.com>
parents:
16285
diff
changeset
|
6 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION) |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
7 |
24389
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
8 SILCSOURCES = \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
9 buddy.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
10 chat.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
11 ft.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
12 ops.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
13 pk.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
14 silc.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
15 silcpurple.h \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
16 util.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
17 wb.c \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
18 wb.h |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 AM_CFLAGS = $(st) |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 |
15884
c6e563dfaa7a
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <stu@nosnilmot.com>
parents:
15822
diff
changeset
|
22 libsilcpurple_la_LDFLAGS = -module -avoid-version |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 if STATIC_SILC |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
25 |
15885
53f9f4ebea7a
s/GAIM_STATIC_PRPL/PURPLE_STATIC_PRPL/ in prpl Makefiles
Stu Tomlinson <stu@nosnilmot.com>
parents:
15884
diff
changeset
|
26 st = -DPURPLE_STATIC_PRPL $(SILC_CFLAGS) |
24389
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
27 noinst_LTLIBRARIES = libsilcpurple.la |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
28 libsilcpurple_la_SOURCES = $(SILCSOURCES) |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
29 libsilcpurple_la_CFLAGS = $(AM_CFLAGS) |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
30 libsilcpurple_la_LIBADD = $(SILC_LIBS) |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
31 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
32 else |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
33 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
34 st = $(SILC_CFLAGS) |
24389
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
35 pkg_LTLIBRARIES = libsilcpurple.la |
15884
c6e563dfaa7a
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <stu@nosnilmot.com>
parents:
15822
diff
changeset
|
36 libsilcpurple_la_SOURCES = $(SILCSOURCES) |
c6e563dfaa7a
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <stu@nosnilmot.com>
parents:
15822
diff
changeset
|
37 libsilcpurple_la_LIBADD = $(GLIB_LIBS) $(SILC_LIBS) |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
38 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
39 endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
40 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
41 AM_CPPFLAGS = \ |
15410
5c329a52367b
More build fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15373
diff
changeset
|
42 -I$(top_srcdir)/libpurple \ |
16754
441945083737
Now that version.h is a generated source file, we need to add
Stu Tomlinson <stu@nosnilmot.com>
parents:
16583
diff
changeset
|
43 -I$(top_builddir)/libpurple \ |
24389
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
44 $(DEBUG_CFLAGS) \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
45 $(GLIB_CFLAGS) \ |
24389
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16754
diff
changeset
|
46 $(SILC_CFLAGS) |