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 <cel...@adacore.com> * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, inherit library kind.
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;