summaryrefslogtreecommitdiff
path: root/gcc/ada/make.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r--gcc/ada/make.adb8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index a82c99aff7f..e0f5998f21f 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -3623,10 +3623,12 @@ package body Make is
if not At_Least_One_Main then
-- First make sure that the binder and the linker
- -- will not be invoked.
+ -- will not be invoked if -z is not used.
- Do_Bind_Step := False;
- Do_Link_Step := False;
+ if not No_Main_Subprogram then
+ Do_Bind_Step := False;
+ Do_Link_Step := False;
+ end if;
-- Put all the sources in the queue