Mercurial > pidgin
comparison libpurple/protocols/oscar/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 | 6f54b1e84610 |
children | adf153852bcf |
comparison
equal
deleted
inserted
replaced
24388:7e8175f9b009 | 24389:2b62300d2c19 |
---|---|
1 EXTRA_DIST = \ | 1 EXTRA_DIST = \ |
2 COPYING \ | 2 COPYING \ |
3 AUTHORS \ | 3 AUTHORS \ |
4 Makefile.mingw | 4 Makefile.mingw |
5 | 5 |
6 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION) | 6 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION) |
7 | 7 |
8 OSCARSOURCES = \ | 8 OSCARSOURCES = \ |
9 bstream.c \ | 9 bstream.c \ |
50 libaim_la_LDFLAGS = -module -avoid-version | 50 libaim_la_LDFLAGS = -module -avoid-version |
51 libicq_la_LDFLAGS = -module -avoid-version | 51 libicq_la_LDFLAGS = -module -avoid-version |
52 if STATIC_OSCAR | 52 if STATIC_OSCAR |
53 | 53 |
54 st = -DPURPLE_STATIC_PRPL | 54 st = -DPURPLE_STATIC_PRPL |
55 noinst_LIBRARIES = liboscar.a | 55 noinst_LTLIBRARIES = liboscar.la |
56 | 56 liboscar_la_SOURCES = $(OSCARSOURCES) libaim.c libicq.c |
57 liboscar_a_SOURCES = $(OSCARSOURCES) libaim.c libicq.c | 57 liboscar_la_CFLAGS = $(AM_CFLAGS) |
58 liboscar_a_CFLAGS = $(AM_CFLAGS) | |
59 | 58 |
60 else | 59 else |
61 | 60 |
62 st = | 61 st = |
63 pkg_LTLIBRARIES = liboscar.la libaim.la libicq.la | 62 pkg_LTLIBRARIES = liboscar.la libaim.la libicq.la |
64 liboscar_la_SOURCES = $(OSCARSOURCES) | 63 liboscar_la_SOURCES = $(OSCARSOURCES) |
65 liboscar_la_LIBADD = $(GLIB_LIBS) | 64 liboscar_la_LIBADD = $(GLIB_LIBS) |
66 | 65 |
67 libaim_la_SOURCES = libaim.c | 66 libaim_la_SOURCES = libaim.c |
68 libaim_la_LIBADD = liboscar.la | 67 libaim_la_LIBADD = liboscar.la |
69 | 68 |
70 libicq_la_SOURCES = libicq.c | 69 libicq_la_SOURCES = libicq.c |
71 libicq_la_LIBADD = liboscar.la | 70 libicq_la_LIBADD = liboscar.la |
72 | 71 |
73 endif | 72 endif |
74 | 73 |
75 AM_CPPFLAGS = \ | 74 AM_CPPFLAGS = \ |
76 -I$(top_srcdir)/libpurple \ | 75 -I$(top_srcdir)/libpurple \ |