From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
---|---|
To: | John Naylor <johncnaylorls(at)gmail(dot)com> |
Cc: | Álvaro Herrera <alvherre(at)kurilemu(dot)de>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Enhance Makefiles to rebuild objects on map file changes |
Date: | 2025-10-09 09:07:08 |
Message-ID: | E933F47B-BDF8-4C1A-8EE1-84E5CBB2B0F0@gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On Oct 9, 2025, at 16:45, John Naylor <johncnaylorls(at)gmail(dot)com> wrote:
>
> On Thu, Oct 9, 2025 at 10:46 AM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)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(at)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/
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2025-10-09 09:12:02 | Re: Improve pg_sync_replication_slots() to wait for primary to advance |
Previous Message | shveta malik | 2025-10-09 08:59:58 | Re: Improve pg_sync_replication_slots() to wait for primary to advance |