-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
5 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
int globus_i_rsl_assist_dummy_int=0; | ||
#include "globus_rsl.h" | ||
int globus_i_rsl_assist_dummy_int(void) { | ||
return globus_rsl_is_relation(NULL); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
globus-rsl (11.4-1+gct.@distro@) @distro@; urgency=medium | ||
|
||
* Make library linking survive -Wl,--as-needed | ||
|
||
-- Mattias Ellert <[email protected]> Tue, 29 Aug 2023 15:21:15 +0200 | ||
|
||
globus-rsl (11.3-1+gct.@distro@) @distro@; urgency=medium | ||
|
||
* Typo fixes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Name: globus-rsl | ||
%global soname 2 | ||
%global _name %(echo %{name} | tr - _) | ||
Version: 11.3 | ||
Version: 11.4 | ||
Release: 1%{?dist} | ||
Summary: Grid Community Toolkit - Resource Specification Language Library | ||
|
||
|
@@ -142,6 +142,9 @@ make %{?_smp_mflags} check VERBOSE=1 | |
%doc %{_pkgdocdir}/GLOBUS_LICENSE | ||
|
||
%changelog | ||
* Tue Aug 29 2023 Mattias Ellert <[email protected]> - 11.4-1 | ||
- Make library linking survive -Wl,--as-needed | ||
|
||
* Fri Aug 20 2021 Mattias Ellert <[email protected]> - 11.3-1 | ||
- Typo fixes | ||
|
||
|