comparison libpurple/protocols/qq/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 260c6f4e6563
children fecedf6d9ee1 7f903e67a995 adf153852bcf
comparison
equal deleted inserted replaced
24331:7e8175f9b009 24332:2b62300d2c19
1 EXTRA_DIST = \ 1 EXTRA_DIST = \
2 Makefile.mingw 2 Makefile.mingw
3 3
4 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION) 4 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
5 5
6 QQSOURCES = \ 6 QQSOURCES = \
7 buddy_info.c \ 7 buddy_info.c \
54 libqq_la_LDFLAGS = -module -avoid-version 54 libqq_la_LDFLAGS = -module -avoid-version
55 55
56 if STATIC_QQ 56 if STATIC_QQ
57 57
58 st = -DPURPLE_STATIC_PRPL 58 st = -DPURPLE_STATIC_PRPL
59 noinst_LIBRARIES = libqq.a 59 noinst_LTLIBRARIES = libqq.la
60 libqq_a_SOURCES = $(QQSOURCES) 60 libqq_la_SOURCES = $(QQSOURCES)
61 libqq_a_CFLAGS = $(AM_CFLAGS) 61 libqq_la_CFLAGS = $(AM_CFLAGS)
62 62
63 else 63 else
64 64
65 st = 65 st =
66 pkg_LTLIBRARIES = libqq.la 66 pkg_LTLIBRARIES = libqq.la