[Adium-devl] Fwd: pidgin: 6b1ddf51: Use libtool to build static archives whe...

Evan Schoenberg evan.s at dreskin.net
Mon Nov 17 23:17:20 UTC 2008


On Nov 17, 2008, at 1:09 AM, Mark Doliner wrote:

> 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.

The changes build just fine for Adium's Libpurple.framework, and  
indeed resolve the "not portable" warnings we'd been seeing (which we  
hadn't been worried about because portability isn't a concern in the  
Mac OS X world).

-Evan

>
>
> 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
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20081117/cf7d322d/attachment.sig>


More information about the devel mailing list