From: Vincent Celier Date: Mon, 26 May 2008 09:39:37 +0000 (+0200) Subject: 2008-05-26 Vincent Celier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9570dc5b2f447261e12aeeb77d7e3a664526e7ed;p=gcc.git 2008-05-26 Vincent Celier * prj-nmsc.adb: (Process_Project_Level_Simple_Attributes): process attribute Library_GCC * prj.ads: (Project_Configuration): New component Shared_Lib_Driver From-SVN: r135897 --- diff --git a/gcc/ada/prj-nmsc.adb b/gcc/ada/prj-nmsc.adb index a2fb600653d..179609aaab9 100644 --- a/gcc/ada/prj-nmsc.adb +++ b/gcc/ada/prj-nmsc.adb @@ -1996,6 +1996,10 @@ package body Prj.Nmsc is From_List => List, 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 Data.Config.Archive_Suffix := File_Name_Type (Attribute.Value.Value); diff --git a/gcc/ada/prj.ads b/gcc/ada/prj.ads index c547eb66397..4c2af09c85c 100644 --- a/gcc/ada/prj.ads +++ b/gcc/ada/prj.ads @@ -1189,6 +1189,10 @@ package Prj is -- 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; -- Part of a shared library file name that precedes the name of the -- library. Specified in the configuration. When not specified, @@ -1230,6 +1234,7 @@ package Prj is Archive_Indexer => No_Name_List, Archive_Suffix => No_File, Lib_Partial_Linker => No_Name_List, + Shared_Lib_Driver => No_File, Shared_Lib_Prefix => No_File, Shared_Lib_Suffix => No_File, Shared_Lib_Min_Options => No_Name_List,