Re: Enhance Makefiles to rebuild objects on map file changes - Mailing list pgsql-hackers

From Chao Li
Subject Re: Enhance Makefiles to rebuild objects on map file changes
Date
Msg-id E933F47B-BDF8-4C1A-8EE1-84E5CBB2B0F0@gmail.com
Whole thread Raw
In response to Re: Enhance Makefiles to rebuild objects on map file changes  (John Naylor <johncnaylorls@gmail.com>)
List pgsql-hackers


On Oct 9, 2025, at 16:45, John Naylor <johncnaylorls@gmail.com> wrote:

On Thu, Oct 9, 2025 at 10:46 AM Chao Li <li.evan.chao@gmail.com> wrote:
I just tried meson build, it seems to only rebuild the corresponding libs without rebuilding Postgres binaries:

Is that expected? I think we need Postgres executables to be rebuilt then we can run tests.

Dynamic shared objects are loaded at runtime, so I don't see why the
calling executables need to be rebuilt in this case.



Ah… That’s true. I was misled by the “make” output:

```
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -Wno-cast-function-type-strict -g -O2  -fvisibility=hidden -I../../../../../../src/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.5.sdk   -I/opt/homebrew/Cellar/icu4c@77/77.1/include    -c -o utf8_and_euc_cn.o utf8_and_euc_cn.c -MMD -MP -MF .deps/utf8_and_euc_cn.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -Wno-cast-function-type-strict -g -O2  -fvisibility=hidden -bundle -o utf8_and_euc_cn.dylib utf8_and_euc_cn.o  -L../../../../../../src/port -L../../../../../../src/common  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.5.sdk   -Wl,-dead_strip_dylibs   -fvisibility=hidden -bundle_loader ../../../../../../src/backend/postgres
```

I didn’t notice the option “-bundle_loader”, and thought the last part (../../../../../../src/backend/postgres) was the buildout binary.

--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Improve pg_sync_replication_slots() to wait for primary to advance
Next
From: Amit Kapila
Date:
Subject: Re: Improve pg_sync_replication_slots() to wait for primary to advance