On Sun, Feb 22, 2026 at 03:49:26PM +0200, Eli Zaretskii wrote:
> Long story short: this doesn't work.
> 
> First, the -s comes from perl_conf_CFLAGS and perl_conf_LDFLAGS, so
> it's what Perl suggests as the compilation and link switches (their
> actual values are much longer, and -s is just one of the options
> mentioned there).  Setting PERL_EXT_CFLAGS and PERL_EXT_LDFLAGS
> doesn't override the -s in the switches, it just adds to them, so -s
> is still there, and debug symbols are still being stripped.
> 
> I ended up hacking tta/C/Makefile by hand to replace -s with
> debug-friendly options.  (It would be nice to have a cleaner way of
> solving this, though, since these perl_conf_* variables are in every
> Makefile under the tta/ directory, and modifying them all by hand is
> no fun.)

It should be possible to override them on the "make" command line under
tta/:

"make perl_conf_LIB_CFLAGS=... perl_conf_LDFLAGS=..."

- or similar.  These variables should be passed to "make" in all the
subdirectories and take priority over values that are already in
the Makefile.  Still a pain, but at least you could put that into
a shell script or something so you don't have to edit all the Makefiles
by hand.

In the future, we could change the checks under tta/m4/txi_perl_conf.m4
not to change any of the variables if they are already set.  Then the
user could do from the command line:

"./configure perl_conf_LIB_CFLAGS=... perl_conf_LDFLAGS=..."

to override default settings.

          • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
            • ... Eli Zaretskii
            • ... Eli Zaretskii
            • ... Gavin Smith
            • ... pertusus
            • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
            • ... pertusus
            • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
            • ... pertusus
          • ... pertusus
          • ... Gavin Smith
      • ... pertusus
        • ... Eli Zaretskii
          • ... Gavin Smith
            • ... pertusus
            • ... Eli Zaretskii
    • ... pertusus
      • ... Eli Zaretskii
  • Re: ... Patrice Dumas
    • ... Eli Zaretskii

Reply via email to