Mercurial > pidgin
annotate libpurple/example/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 | caeb452845ef |
| children | f5bcb58bdf56 |
| rev | line source |
|---|---|
|
16266
a9c75536f0c9
Don't install nullclient by default, it's probably not particularly useful
Stu Tomlinson <stu@nosnilmot.com>
parents:
15880
diff
changeset
|
1 noinst_PROGRAMS = nullclient |
|
15617
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
2 |
|
15880
f6b7e893c4f1
Include defines.h in make dist
Stu Tomlinson <stu@nosnilmot.com>
parents:
15617
diff
changeset
|
3 nullclient_SOURCES = defines.h nullclient.c |
|
f6b7e893c4f1
Include defines.h in make dist
Stu Tomlinson <stu@nosnilmot.com>
parents:
15617
diff
changeset
|
4 nullclient_DEPENDENCIES = |
|
15617
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
5 nullclient_LDFLAGS = -export-dynamic |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
6 nullclient_LDADD = \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
7 $(DBUS_LIBS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
8 $(INTLLIBS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
9 $(GLIB_LIBS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
10 $(LIBXML_LIBS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
11 $(top_builddir)/libpurple/libpurple.la |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
12 |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
13 AM_CPPFLAGS = \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
14 -DSTANDALONE \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
15 -DBR_PTHREADS=0 \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
16 -DDATADIR=\"$(datadir)\" \ |
|
16583
ce049678a67b
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <stu@nosnilmot.com>
parents:
16266
diff
changeset
|
17 -DLIBDIR=\"$(libdir)/purple-$(PURPLE_MAJOR_VERSION)/\" \ |
|
15617
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
18 -DLOCALEDIR=\"$(datadir)/locale\" \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
19 -DSYSCONFDIR=\"$(sysconfdir)\" \ |
|
22163
caeb452845ef
Fix for $(top_builddir) != $(top_srcdir)
Bj?rn Voigt <bjoern@cs.tu-berlin.de>
parents:
16583
diff
changeset
|
20 -I$(top_builddir)/libpurple \ |
|
caeb452845ef
Fix for $(top_builddir) != $(top_srcdir)
Bj?rn Voigt <bjoern@cs.tu-berlin.de>
parents:
16583
diff
changeset
|
21 -I$(top_srcdir)/libpurple \ |
|
15617
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
22 -I$(top_srcdir) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
23 $(DEBUG_CFLAGS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
24 $(GLIB_CFLAGS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
25 $(DBUS_CFLAGS) \ |
|
7e0c0062c428
Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
26 $(LIBXML_CFLAGS) |
