https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127312

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by John David Anglin <[email protected]>:

https://gcc.gnu.org/g:d9408aa50de1d923b0a0aa6e2412830d1fcab0e3

commit r17-6776-gd9408aa50de1d923b0a0aa6e2412830d1fcab0e3
Author: John David Anglin <[email protected]>
Date:   Sat Nov 28 09:56:21 2026 -0500

    libbacktrace: Check linker support for -Wl,-Bstatic in strippedtest
[PR127312]

    On targets utilizing a proprietary linker that does not understand GNU
    linker options (such as hppa64-hp-hpux11.11), the hardcoded use of
    '-Wl,-Bstatic' in the strippedtest link flags causes a fatal linkage
    failure and halts the check suite.

    This patch fixes the issue by introducing a new autoconf feature check
    'libbacktrace_cv_linker_bstatic' to dynamically verify if the target
    linker supports the '-Wl,-Bstatic' directive. The result is substituted
    via BSTATIC_LDFLAG, allowing the strippedtest link properties in
    Makefile.am to adapt cleanly across both GNU and HP-UX host linkers.

    2026-10-28  John David Anglin  <[email protected]>

    libbacktrace/ChangeLog:

            PR libbacktrace/127312
            * configure.ac: Add a link-time feature check for -Wl,-Bstatic
            support and define the BSTATIC_LDFLAG substitution variable.
            * Makefile.am (strippedtest_LDFLAGS): Substitute hardcoded
            -Wl,-Bstatic with $(BSTATIC_LDFLAG).
            * configure, Makefile.in: Regenerate.
  • [Bug libbacktrace/127312] libba... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to