summaryrefslogtreecommitdiff
path: root/gcc/ada/gnatcmd.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/gnatcmd.adb')
-rw-r--r--gcc/ada/gnatcmd.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/gnatcmd.adb b/gcc/ada/gnatcmd.adb
index fbd2a6f695d..174a8db1481 100644
--- a/gcc/ada/gnatcmd.adb
+++ b/gcc/ada/gnatcmd.adb
@@ -1577,6 +1577,13 @@ begin
Program_Name (Command_List (The_Command).Unixcmd.all, "gnat");
end if;
+ -- For all tools other than gnatmake, allow shared library projects to
+ -- import projects that are not shared library projects.
+
+ if The_Command /= Make then
+ Opt.Unchecked_Shared_Lib_Imports := True;
+ end if;
+
-- Locate the executable for the command
Exec_Path := Locate_Exec_On_Path (Program.all);