Fwd: pidgin: 6b1ddf51: Use libtool to build static archives whe...
Mark Doliner
mark at kingant.net
Mon Nov 17 01:09:54 EST 2008
FYI a few days ago I changed Pidgin's libpurple Makefiles.am's to use
libtool when building prpls statically. If anyone runs into problems
with this I'd love to hear gory details.
Thanks,
Mark
---------- Forwarded message ----------
Revision: 6b1ddf5181d175d53d255fc96384ed8da3708aed
Ancestor: bc80dc424bc7a7e274901f9124173538e5b43f41
Author: markdoliner at pidgin.im
Date: 2008-11-12T11:30:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6b1ddf5181d175d53d255fc96384ed8da3708aed
Modified files:
configure.ac libpurple/protocols/bonjour/Makefile.am
libpurple/protocols/gg/Makefile.am
libpurple/protocols/irc/Makefile.am
libpurple/protocols/jabber/Makefile.am
libpurple/protocols/msn/Makefile.am
libpurple/protocols/msnp9/Makefile.am
libpurple/protocols/myspace/Makefile.am
libpurple/protocols/novell/Makefile.am
libpurple/protocols/null/Makefile.am
libpurple/protocols/oscar/Makefile.am
libpurple/protocols/qq/Makefile.am
libpurple/protocols/sametime/Makefile.am
libpurple/protocols/silc/Makefile.am
libpurple/protocols/silc10/Makefile.am
libpurple/protocols/simple/Makefile.am
libpurple/protocols/toc/Makefile.am
libpurple/protocols/yahoo/Makefile.am
libpurple/protocols/zephyr/Makefile.am
ChangeLog:
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
More information about the Devel
mailing list