diff options
Diffstat (limited to 'devel/gprbuild/files/patch-src_gprlib.adb')
-rw-r--r-- | devel/gprbuild/files/patch-src_gprlib.adb | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/devel/gprbuild/files/patch-src_gprlib.adb b/devel/gprbuild/files/patch-src_gprlib.adb deleted file mode 100644 index 4385d5c92e45..000000000000 --- a/devel/gprbuild/files/patch-src_gprlib.adb +++ /dev/null @@ -1,50 +0,0 @@ ---- src/gprlib.adb.orig 2015-05-06 11:08:38 UTC -+++ src/gprlib.adb -@@ -393,6 +393,11 @@ procedure Gprlib is - - Separate_Run_Path_Options : Boolean := False; - -+ Rpath_Disabled : Boolean := False; -+ -- If -R is passed through the library options for the linker, it will -+ -- prevent the implemented libraries portion of the rpath switch from -+ -- being built, even if the linker is capable of supporting rpath. -+ - Rpath : String_List_Access := null; - -- Allocated only if Path Option is supported - -@@ -1011,7 +1016,12 @@ begin - Use_GNAT_Lib := False; - end if; - -- Library_Options_Table.Append (new String'(Line (1 .. Last))); -+ if Line (1 .. Last) = "-R" then -+ Rpath_Disabled := True; -+ else -+ Library_Options_Table.Append -+ (new String'(Line (1 .. Last))); -+ end if; - - when Gprexch.Library_Rpath_Options => - Library_Rpath_Options_Table.Append -@@ -1143,10 +1153,10 @@ begin - - Libgnat := - new String' -- ("-lgnat-" & Line (6 .. Last)); -+ ("-lgnat-" & Line (6)); - Libgnarl := - new String' -- ("-lgnarl-" & Line (6 .. Last)); -+ ("-lgnarl-" & Line (6)); - end if; - - else -@@ -2113,7 +2123,7 @@ begin - Library_Switches_Table.Append - (new String'("-L" & Imported_Library_Directories.Table (J).all)); - -- if Path_Option /= null then -+ if not Rpath_Disabled and then Path_Option /= null then - Add_Rpath (Imported_Library_Directories.Table (J)); - end if; - |