Re: Makefile breakage - Mailing list pgsql-patches

From Tom Lane
Subject Re: Makefile breakage
Date
Msg-id 23848.1111709233@sss.pgh.pa.us
Whole thread Raw
In response to Re: Makefile breakage  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Makefile breakage
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> You can't just arbitrarily pull in libpgport.a everywhere that libpq.so
>> is used.  That breaks anything that requires position-independent code
>> ... for instance ecpglib.

> Strange because it worked on my BSD system and I do compile ecpg.  What
> do you suggest?  Is this worth fixing somehow?

Intel machines tend not to care whether code is officially
position-independent or not.  Most other platforms are sticky about it.
You don't have a choice whether to fix it.

I think you should leave the $(libpq) macro alone and add a $(libpgport)
macro ... and yes, you will have to go around and modify the client
program Makefiles individually.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Makefile breakage
Next
From: Bruce Momjian
Date:
Subject: Re: Makefile breakage