> On Oct 9, 2025, at 16:45, John Naylor <[email protected]> wrote:
> 
> On Thu, Oct 9, 2025 at 10:46 AM Chao Li <[email protected]> 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/




Reply via email to