From: | Vladlen Popolitov <v(dot)popolitov(at)postgrespro(dot)ru> |
---|---|
To: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, Andrew Kane <andrew(at)ankane(dot)org>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Exporting float_to_shortest_decimal_buf(n) with Postgres 17 on Windows |
Date: | 2024-12-23 12:14:05 |
Message-ID: | b78bfb4f512a015f0df1489a19a5adbe@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Heikki Linnakangas писал(а) 2024-12-23 14:05:
> On 23/12/2024 12:32, Vladlen Popolitov wrote:
>> I found the reason of this bug and the fix for it.
>
> Cool!
>
>> Fortunatelly meson has option to force put all object files to
>> library - add dependency with the flag link_whole .
>>
>> I made the one-line patch and it fixes this issue.
>>
>> - 'dependencies': opts['dependencies'] + [ssl],
>> + 'dependencies': opts['dependencies'] + [ssl] +
>> [declare_dependency( link_whole : cflag_libs)],
>
> I'm no meson expert and don't have a Windows system to test on, but
> this seems like a weird place to add the option. Could you do this
> instead:
>
> diff --git a/src/common/meson.build b/src/common/meson.build
> index 538e0f43d55..76a7f68fe30 100644
> --- a/src/common/meson.build
> +++ b/src/common/meson.build
> @@ -184,6 +184,7 @@ foreach name, opts : pgcommon_variants
>
> lib = static_library('libpgcommon(at)0@'.format(name),
> link_with: cflag_libs,
> + link_whole: cflag_libs,
> c_pch: pch_c_h,
> kwargs: opts + {
> 'include_directories': [
Yes, it is also working option. I applied it and tested in the current
master under Windows,
it works.
Attached patch changes this line in meson.build
> link_with: cflag_libs,
> + link_whole: cflag_libs,
> c_pch: pch_c_h,
--
Best regards,
Vladlen Popolitov.
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Fix-meson.build-to-prevent-missed-obj-files-in-li.patch | text/x-diff | 757 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Vladlen Popolitov | 2024-12-23 12:16:50 | Re: Exporting float_to_shortest_decimal_buf(n) with Postgres 17 on Windows |
Previous Message | Andrey Borodin | 2024-12-23 11:30:17 | Re: transaction lost when delete clog file after normal shutdown |