diff mbox

[Ada] Virtually extending library project inherits library kind

Message ID 20110802090915.GA15161@adacore.com
State New
Headers show

Commit Message

Arnaud Charlet Aug. 2, 2011, 9:09 a.m. UTC
Virtual projects that were extensions of shared library projects were
deemed as static library projects.

Tested on x86_64-pc-linux-gnu, committed on trunk

2011-08-02  Vincent Celier  <celier@adacore.com>

	* prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
	inherit library kind.
diff mbox

Patch

Index: prj-nmsc.adb
===================================================================
--- prj-nmsc.adb	(revision 176998)
+++ prj-nmsc.adb	(working copy)
@@ -3724,10 +3724,11 @@ 
 
                   else
                      --  For a virtual project extending a library project,
-                     --  inherit library directory.
+                     --  inherit library directory and library kind.
 
                      Project.Library_Dir := Project.Extends.Library_Dir;
                      Library_Directory_Present := True;
+                     Project.Library_Kind := Project.Extends.Library_Kind;
                   end if;
                end if;
             end if;