Re: BUG #19095: Test if function exit() is used fail when linked static

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: BUG #19095: Test if function exit() is used fail when linked static
Дата
Msg-id 483765ED-0490-4972-9769-4943716BE204@yesql.se
обсуждение исходный текст
Ответ на Re: BUG #19095: Test if function exit() is used fail when linked static  (VASUKI M <vasukim1992002@gmail.com>)
Ответы Re: BUG #19095: Test if function exit() is used fail when linked static
Список pgsql-bugs
> On 25 Nov 2025, at 10:11, VASUKI M <vasukim1992002@gmail.com> wrote:

> Thanks for this suggestion michael & Nazir for the code,i have made the changes you said
>
> Also added the check where it scans for nm in the environment if it is not present then it gracefully skips the test.

+if find_program('nm', required: false, native: true).found() and not get_option('b_coverage')
Sorry for being late to the party, but I wonder why we aren't adding this check
to the toplevel meson.build and configure.ac (via config/programs.m4) like how
we check for all others tools used by the build?  Such checks should of course
not fail the configuration, merely record the presence or absence of the tool.
The path can then be exported to src/interfaces/libpq/{Makefile|meson.build} to
use.


+open my $fh, '-|', "$nm_path -A -u $input_file 2>/dev/null"
This filehandle is never closed.


+# ---- Skip entirely on Solaris ----
+if ($Config{osname} =~ /solaris/i) {
+    exit 0;
+}
This won't work on Windows either, which wasn't checked for in the Makefile
since make isn't used on Windows.

--
Daniel Gustafsson




В списке pgsql-bugs по дате отправления: