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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>:

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

commit r14-8522-gd1d144d80f27f7a027ec8a05758555e7aa45462f
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Wed Jan 24 08:05:01 2024 +0000

    testsuite, GDC: Update link flags [PR112861].

    The regressions here are because we do not generate a runpath for
    the uninstalled libstdc++.  This patch updates the link flags handling
    to simplify it.

    We need to add options to locate both libgphobos and libstdc++
    Usually '-L' options are added to point to the relevant directories for
    the uninstalled libraries.

    In cases where libraries are available as both shared and convenience
    some additional checks are made.

    For some targets -static-xxxx options are handled by specs substitution
    and need a '-B' option rather than '-L'.  For Darwin, when embedded
    runpaths are in use (the default for all versions after macOS 10.11),
    '-B' is also needed to provide the runpath.

    When '-B' is used, this results in a '-L' for each path that exists (so
    that appending a '-L' as well is a needless duplicate).  There are also
    cases where tools warn for duplicates, leading to spurious fails.
    Therefore the objective is to add a single -B/-L option for each needed
    path.

            PR target/112861

    gcc/testsuite/ChangeLog:

            * lib/gdc.exp: Decide on whether to present -B or -L to reference
            the paths to uninstalled libphobos and libstdc++ and use that to
            generate the link flags.

Reply via email to