On 2022-07-11 at 09:12, Greg Wooledge wrote: > On Mon, Jul 11, 2022 at 02:20:18PM +0200, Thomas Schmitt wrote: > >> Hi, >> >> i wrote:
>>>> It appears that an argument -I is missing before >>>> /usr/include/postgresql. >> >>> This is a very good theory. >> >> Together with Greg Wooledge's observation that "make"'s macro >> definition does not interpret `...` as output of shell commands we >> already have two reasons why that part of the Makefile should not >> work. >> >> The riddle grows why it appears to work on Gentoo. > > You're misunderstanding my conclusions. The backticks *do* work in > the end, since they're passed through to the shell, and the shell > interprets them the way the OP seems to want. > > The missing -I is probably it. It's interesting that pkg-config > --cflags and pg_config --includedir deviate in this way. Note that pg_config does also support a --cflags option (there doesn't appear to be a man page, at least not in Debian under the obvious name, but see 'pg_config --help'); however, it's documented as providing not the flags necessary to compile programs against the installed PostgreSQL but rather the "CFLAGS value used when [the installed version of] PostgreSQL was built". In some cases those two things will be the same, but not necessarily in all - and I fail to see how the latter is useful information to know, except in a "trying to debug the installed PostgreSQL instance" sort of scenario, which hardly seems like what pg_config would intuitively be intended for. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
signature.asc
Description: OpenPGP digital signature