Follow-up Comment #6, bug #17573 (project wesnoth):

Rather than patching Wesnoth directly, it might be better to write a wrapper
that will use the LD_PRELOAD trick that Linus Torvalds recommended:

https://bugzilla.redhat.com/show_bug.cgi?id=638477#c38

The build system could be modified so that the wrapper is optional, with
--enable-wrapper being the default. When it is enabled, the mymemcpy.so he
provided there could be compiled with Wesnoth and a wrapper script could be
subsitutted in place of the binary to do the requisite LD_PRELOAD.

That way, we can let the distribution maintainers worry about whether or not
their distributions need this fix and people on other operating systems like
Windows, FreeBSD and Mac OS X do not have to worry about it. Doing the
detection at runtime is somewhat more difficult to get right and would not be
as efficient.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17573>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to