Skip to content

Commit

Permalink
dev-ada/gprbuild: Fix linker file
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Tupone <[email protected]>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
  • Loading branch information
atupone committed Nov 21, 2018
1 parent 44e7d95 commit 33ee6ad
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions dev-ada/gprbuild/files/gprbuild-2017-config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,21 @@
</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";

0 comments on commit 33ee6ad

Please sign in to comment.