1
Author: Ludovic Brenta <lbrenta@debian.org>
2
Description: Make sure never to call the "gnat" command, just "gnatmake" or "gnatgcc".
4
diff -Naurp adabrowse.orig/ad-driver.adb adabrowse/ad-driver.adb
5
--- adabrowse.orig/ad-driver.adb 2009-02-24 21:17:01.000000000 +0100
6
+++ adabrowse/ad-driver.adb 2009-02-24 21:17:46.000000000 +0100
7
@@ -660,7 +660,7 @@ package body AD.Driver is
8
-- it needs (configuration pragmas, naming schemes, etc.)
9
-- Note: we also pass on -X options!
10
AD.Compiler.Set_Compile_Command
11
- ("gnat compile -c -gnatc -gnatt -P" &
12
+ ("gnatmake -c -gnatc -gnatt -P" &
13
AD.Projects.Get_Project_File_Name &
14
ASU.To_String (Pass_On_Options));
16
diff -Naurp adabrowse.orig/ad-projects.ads adabrowse/ad-projects.ads
17
--- adabrowse.orig/ad-projects.ads 2009-02-24 21:17:01.000000000 +0100
18
+++ adabrowse/ad-projects.ads 2009-02-24 21:17:46.000000000 +0100
19
@@ -75,9 +75,10 @@ package AD.Projects is
20
-- specified and no "-f" option is given, AdaBrowse will process all specs
21
-- from the source files of the root project.
23
- -- Warning: if a project file is given, the compile command is changed to
24
- -- "gnat compile -P<file_name>", if it starts with the default compiler
25
- -- name (which is "gcc" -- or "gnatgcc" on some Linux installations.)
26
+ -- Warning: if a project file is given, the compile command is
27
+ -- changed to "gnatmake -c -gnatc -gnatt -P<file_name>", if it
28
+ -- starts with the default compiler name (which is "gcc" -- or
29
+ -- "gnatgcc" on some Linux installations.)
31
-- The AdaBrowse currently doesn't handle the other project-related
32
-- switches of GNAT tools, i.e. "-X" and "-vP". To define values for