Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make library linking survive -Wl,--as-needed #217

Merged
merged 1 commit into from
Sep 5, 2023

Commits on Aug 30, 2023

  1. Make library linking survive -Wl,--as-needed

    The libglobus_rsl_assist library is an empty backwards compatibility
    library that is there to fulfil link dependencies from earlier
    versions of GT/GCT. The functionality that used to be provided by this
    library now is in libglobus_rsl. When linking the libglobus_rsl_assist
    library it links to libglobus_rsl (-lglobus_rsl), so that loading the
    empty compatibility library will load the globus_rsl library. However,
    many Linux distribution by default uses -Wl,--as-needed when linking
    during package builds (rpm/dpkg). This means that the link from
    libglobus_rsl_assist to libglobus_rsl is lost. This commit adds a
    dummy function that references a symbol in the libglobus_rsl library
    so that the link information is not removed when linking using
    -Wl,--as-needed.
    
    In addition this commit declares the symbol "lvl" in libglobus_rsl
    static. This symbol is not in the globus_* namespace and has a very
    generic name and should therefore not by globally accessible.
    ellert committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    cd07130 View commit details
    Browse the repository at this point in the history