Re: /usr/bin/ld: cannot find [...] when compiling - Mailing list pgsql-general

From Tom Lane
Subject Re: /usr/bin/ld: cannot find [...] when compiling
Date
Msg-id 6546.1385319939@sss.pgh.pa.us
Whole thread Raw
In response to Re: /usr/bin/ld: cannot find [...] when compiling  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: /usr/bin/ld: cannot find [...] when compiling
List pgsql-general
I wrote:
> "Janek Sendrowski" <janek12@web.de> writes:
>> Makefile:
>> PROGRAM = test
>> DATA = test.c

> It looks like the problem is that there aren't any Postgres-specific -I
> flags in the make command.  After a bit of poking around in the pgxs code
> I think the reason why not is that you're using the PROGRAM target instead
> of MODULES or MODULE_big.

No, wait, I take that back.  The problem with this makefile is you
need to say
OBJS = test.o
in order to tell the makefile what files PROGRAM is built from.  It seems
pretty unlikely that "DATA = test.c" is what you want, either.

Having said that, I'm still not sure that PROGRAM is really the final
target you want.

            regards, tom lane


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: /usr/bin/ld: cannot find [...] when compiling
Next
From: "Janek Sendrowski"
Date:
Subject: Re: /usr/bin/ld: cannot find [...] when compiling