Thread: Patch to add dependency between client executes and static libraries

Patch to add dependency between client executes and static libraries

From
高增琦
Date:
Hi, all

The attached patch trying to add dependency between client executes
and static libraries.

As described in message: https://www.postgresql.org/message-id/flat/CAFmBtr1GDF%2BCpw%2B7SZF8jWGeazOd%3D%3DivRAg3rWhLaRXYCv83Vg%40mail.gmail.com#CAFmBtr1GDF+Cpw+7SZF8jWGeazOd==ivRAg3rWhLaRXYCv83Vg@mail.gmail.com

I add a STLIBS variable in Makefiles as normal prerequisite.
Then, for example, if you update something in psqlscan.l, then make will
rebuild psql automatically.

Since I don't know if the la
​c​
k of dependency is problem or not,
this patch maybe useless.

Thanks,


--
GaoZengqi
pgf00a@gmail.com
zengqigao@gmail.com
Attachment

Re: Patch to add dependency between client executes and static libraries

From
Tom Lane
Date:
高增琦 <pgf00a@gmail.com> writes:
> The attached patch trying to add dependency between client executes
> and static libraries.

If this is intended to solve the problem described in
<CAFmBtr1GDF%2BCpw%2B7SZF8jWGeazOd%3D%3DivRAg3rWhLaRXYCv83Vg%40mail.gmail.com>
then it should be added to that thread rather than starting a new one.

But please see the comment I just posted in that thread --- I don't
think we want to continue using order-only dependencies for these
libraries.
        regards, tom lane