Mercurial > pidgin.yaz
annotate libpurple/protocols/sametime/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 | 441945083737 |
children | c72b77a638a1 adf153852bcf |
rev | line source |
---|---|
24332
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
1 EXTRA_DIST = \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
2 Makefile.mingw |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
3 |
16591
ce049678a67b
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <stu@nosnilmot.com>
parents:
16285
diff
changeset
|
4 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION) |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
5 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
6 noinst_HEADERS = sametime.h |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
7 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 SAMETIMESOURCES = sametime.c |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 |
24332
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
10 AM_CFLAGS = \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
11 $(st) \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
12 -DG_LOG_DOMAIN=\"sametime\" |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 if STATIC_SAMETIME |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 |
15886
53f9f4ebea7a
s/GAIM_STATIC_PRPL/PURPLE_STATIC_PRPL/ in prpl Makefiles
Stu Tomlinson <stu@nosnilmot.com>
parents:
15462
diff
changeset
|
16 st = -DPURPLE_STATIC_PRPL |
24332
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
17 noinst_LTLIBRARIES = libsametime.la |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
18 libsametime_la_SOURCES = $(SAMETIMESOURCES) |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
19 libsametime_la_CFLAGS = $(AM_CFLAGS) |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 else |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 st = |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 pkg_LTLIBRARIES = libsametime.la |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
25 libsametime_la_SOURCES = $(SAMETIMESOURCES) |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
26 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
27 endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
28 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
29 libsametime_la_LDFLAGS = -module -avoid-version |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
30 libsametime_la_LIBADD = $(GLIB_LIBS) $(MEANWHILE_LIBS) |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
31 |
24332
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
32 AM_CPPFLAGS = \ |
16765
441945083737
Now that version.h is a generated source file, we need to add
Stu Tomlinson <stu@nosnilmot.com>
parents:
16591
diff
changeset
|
33 -I$(top_srcdir)/libpurple \ |
24332
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
34 -I$(top_builddir)/libpurple \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
35 $(DEBUG_CFLAGS) \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
36 $(GLIB_CFLAGS) \ |
2b62300d2c19
Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <mark@kingant.net>
parents:
16765
diff
changeset
|
37 $(MEANWHILE_CFLAGS) |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
38 |