2009-07-10 Vincent Celier <celier@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jul 2009 09:10:20 +0000 (09:10 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jul 2009 09:10:20 +0000 (09:10 +0000)
* make.adb: Do not include object directories or library ALI
directories of library projects in the object path.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149460 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/make.adb

index 5c689bd..f08c680 100644 (file)
@@ -6051,9 +6051,10 @@ package body Make is
                if Main_Project /= No_Project then
 
                   --  Put all the source directories in ADA_INCLUDE_PATH,
-                  --  and all the object directories in ADA_OBJECTS_PATH.
+                  --  and all the object directories in ADA_OBJECTS_PATH,
+                  --  except those of library projects.
 
-                  Prj.Env.Set_Ada_Paths (Main_Project, Project_Tree, True);
+                  Prj.Env.Set_Ada_Paths (Main_Project, Project_Tree, False);
 
                   --  If switch -C was specified, create a binder mapping file