Commit 9570dc5b by Vincent Celier Committed by Arnaud Charlet

2008-05-26 Vincent Celier <celier@adacore.com>

	* prj-nmsc.adb:
	(Process_Project_Level_Simple_Attributes): process attribute Library_GCC

	* prj.ads:
	(Project_Configuration): New component Shared_Lib_Driver

From-SVN: r135897
parent c42e6724
...@@ -1996,6 +1996,10 @@ package body Prj.Nmsc is ...@@ -1996,6 +1996,10 @@ package body Prj.Nmsc is
From_List => List, From_List => List,
In_Tree => In_Tree); In_Tree => In_Tree);
elsif Attribute.Name = Name_Library_GCC then
Data.Config.Shared_Lib_Driver :=
File_Name_Type (Attribute.Value.Value);
elsif Attribute.Name = Name_Archive_Suffix then elsif Attribute.Name = Name_Archive_Suffix then
Data.Config.Archive_Suffix := Data.Config.Archive_Suffix :=
File_Name_Type (Attribute.Value.Value); File_Name_Type (Attribute.Value.Value);
......
...@@ -1189,6 +1189,10 @@ package Prj is ...@@ -1189,6 +1189,10 @@ package Prj is
-- Shared libraries -- Shared libraries
Shared_Lib_Driver : File_Name_Type := No_File;
-- The driver to link shared libraries. Set with attribute
-- Library_GCC. Default to gcc.
Shared_Lib_Prefix : File_Name_Type := No_File; Shared_Lib_Prefix : File_Name_Type := No_File;
-- Part of a shared library file name that precedes the name of the -- Part of a shared library file name that precedes the name of the
-- library. Specified in the configuration. When not specified, -- library. Specified in the configuration. When not specified,
...@@ -1230,6 +1234,7 @@ package Prj is ...@@ -1230,6 +1234,7 @@ package Prj is
Archive_Indexer => No_Name_List, Archive_Indexer => No_Name_List,
Archive_Suffix => No_File, Archive_Suffix => No_File,
Lib_Partial_Linker => No_Name_List, Lib_Partial_Linker => No_Name_List,
Shared_Lib_Driver => No_File,
Shared_Lib_Prefix => No_File, Shared_Lib_Prefix => No_File,
Shared_Lib_Suffix => No_File, Shared_Lib_Suffix => No_File,
Shared_Lib_Min_Options => No_Name_List, Shared_Lib_Min_Options => No_Name_List,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment