On Monday 09 January 2006 15:45, David Eriksson wrote:
> Maybe it's because of -lmimedir?
>
> This bug shows some problem with mimedir and PIC:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1225471&group_id=3
>0550&atid=399601

Indeed it was.  Here (Makefile.in from libmimedir-0.4):

.c.o:
        ${CC} ${CFLAGS} -o $@ -c $<

Is the shared objects causing the TEXTREL for synce-rra.  One of 2 solutions 
is avaliable.  Either a) Stick -fPIC in CFLAGS or b) shove it in the above:

.c.o:
        ${CC} ${CFLAGS} -fPIC -o $@ -c $<

Unfortunately this really isn't the most elegant solution, and it needs to 
really be done with autotools, as this will only work on a system that uses 
the gnu gcc compiler (solaris for example uses -KPIC).  I'll look at it more 
in depth once I've crunched through the autotools book some more (and cry a 
lot while clawing my eyes out).  Thanks again!

Chris White

Attachment: pgpfuW48mXGmS.pgp
Description: PGP signature

Reply via email to