aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/bld.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/bld.adb')
-rw-r--r--gcc/ada/bld.adb9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ada/bld.adb b/gcc/ada/bld.adb
index 59a4ac0..a39076b 100644
--- a/gcc/ada/bld.adb
+++ b/gcc/ada/bld.adb
@@ -3120,11 +3120,14 @@ package body Bld is
end if;
end if;
- -- Add source dirs of this project file to variable SRC_DIRS
+ -- Add source dirs of this project file to variable SRC_DIRS.
+ -- Put them in front, and remove duplicates.
- Put ("SRC_DIRS:=$(SRC_DIRS) $(");
+ Put ("SRC_DIRS:=$(");
Put (Uname);
- Put (".src_dirs)");
+ Put (".src_dirs) $(filter-out $(");
+ Put (Uname);
+ Put (".src_dirs),$(SRC_DIRS))");
New_Line;
-- Set OBJ_DIR to the object directory