1
# DP: - in project files, use the exact Library_Version provided, if any, as
2
# DP: the soname of libraries; do not strip minor version numbers
5
Index: b/src/gcc/ada/mlib-tgt-specific-linux.adb
6
===================================================================
7
--- a/src/gcc/ada/mlib-tgt-specific-linux.adb
8
+++ b/src/gcc/ada/mlib-tgt-specific-linux.adb
9
@@ -50,6 +50,8 @@ package body MLib.Tgt.Specific is
11
function Is_Archive_Ext (Ext : String) return Boolean;
13
+ function Library_Major_Minor_Id_Supported return Boolean;
15
---------------------------
16
-- Build_Dynamic_Library --
17
---------------------------
18
@@ -142,7 +144,18 @@ package body MLib.Tgt.Specific is
19
return Ext = ".a" or else Ext = ".so";
22
+ --------------------------------------
23
+ -- Library_Major_Minor_Id_Supported --
24
+ --------------------------------------
26
+ function Library_Major_Minor_Id_Supported return Boolean is
29
+ end Library_Major_Minor_Id_Supported;
32
Build_Dynamic_Library_Ptr := Build_Dynamic_Library'Access;
33
Is_Archive_Ext_Ptr := Is_Archive_Ext'Access;
34
+ Library_Major_Minor_Id_Supported_Ptr :=
35
+ Library_Major_Minor_Id_Supported'Access;
36
end MLib.Tgt.Specific;
37
Index: b/src/gcc/ada/mlib.adb
38
===================================================================
39
--- a/src/gcc/ada/mlib.adb
40
+++ b/src/gcc/ada/mlib.adb
41
@@ -30,6 +30,7 @@ with System;
43
with Output; use Output;
46
with MLib.Utl; use MLib.Utl;
49
@@ -393,7 +394,11 @@ package body MLib is
53
- function Major_Id_Name
54
+ function Major_Id_Name_If_Supported
55
+ (Lib_Filename : String;
56
+ Lib_Version : String)
58
+ function Major_Id_Name_If_Supported
59
(Lib_Filename : String;
62
@@ -447,6 +452,19 @@ package body MLib is
66
+ end Major_Id_Name_If_Supported;
68
+ function Major_Id_Name
69
+ (Lib_Filename : String;
70
+ Lib_Version : String)
74
+ if MLib.Tgt.Library_Major_Minor_Id_Supported then
75
+ return Major_Id_Name_If_Supported (Lib_Filename, Lib_Version);
81
-------------------------------