dev-ada/gprbuild: Fix linker file
authorTupone Alfredo <tupone@gentoo.org>
Wed, 21 Nov 2018 21:06:12 +0000 (22:06 +0100)
committerTupone Alfredo <tupone@gentoo.org>
Wed, 21 Nov 2018 21:06:12 +0000 (22:06 +0100)
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-ada/gprbuild/files/gprbuild-2017-config.patch

index 72f1fd829c1cc7404f0310b0ff97727ee0de7708..cb37dd58dd2d07232ca183f9922c402fef0049f2 100644 (file)
     </configuration>
 --- a/share/gprconfig/linker.xml       2018-10-27 09:43:17.934862859 +0200
 +++ b/share/gprconfig/linker.xml       2018-10-27 09:43:54.127304471 +0200
-@@ -742,7 +742,7 @@
-    for Shared_Library_Suffix use ".sl";
-    for Library_Auto_Init_Supported use "true";
-    for Run_Path_Option  use ("-Wl,+b,");
--   for Library_Partial_Linker use ("gcc", "-nostdlib", "-Wl,-r", "-o");
-+   for Library_Partial_Linker use ("gcc-@VER@", "-nostdlib", "-Wl,-r", "-o");
+@@ -814,7 +814,7 @@
+       when "arm-android" | "arm-linux-androideabi" =>
+          null;
+       when others =>
+-         for Library_Partial_Linker use ("${PATH(ada)}${PREFIX(ada)}gcc", "-nostdlib", "-Wl,-r", "-o");
++         for Library_Partial_Linker use ("${PATH(ada)}${PREFIX(ada)}gcc-@VER@", "-nostdlib", "-Wl,-r", "-o");
+    end case;
+     </config>
+   </configuration>
+@@ -830,7 +830,7 @@
+        <target name="^.*linux.*$" />
+     </targets>
+     <config>
+-   for Library_Partial_Linker use ("${PATH(ada)}${PREFIX(c)}gcc", "-nostdlib", "-Wl,-r", "-o");
++   for Library_Partial_Linker use ("${PATH(ada)}${PREFIX(c)}gcc-@VER@", "-nostdlib", "-Wl,-r", "-o");
+     </config>
+   </configuration>
  
-    package Linker is
-       for Max_Command_Line_Length use "5000";