[Webkit-unassigned] [Bug 244840] [GLib] Recording build options and provide a way of inspecting them

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 05:15:01 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244840

--- Comment #2 from Adrian Perez <aperez at igalia.com> ---
On ELF targets we could also add a main() symbol to the WebKit library
which jsut does “printf("%s\n", webkit_get_version_string())”, which will
be ignored when the library is loaded as a dependency for some executable,
but which will run if the library is executed as if it were a program.
Some libraries have done this kind of thing for decades, for example the
GNU C library:

  % /usr/lib/libc.so.6 | head -1       
  GNU C Library (GNU libc) stable release version 2.36.
  %

Although we may as well skip this bit. As long as the build options
string ends up somewhere in the library, one can always run “strings”
on it to find the build options without even running anything.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220906/0c73cda8/attachment.htm>


More information about the webkit-unassigned mailing list