PR ada/85036
* gnatlink.adb (Process_Args): Drop existing link switches if multiple
switches are passed for --LINK.
From-SVN: r258827
+2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR ada/85036
+ * gnatlink.adb (Process_Args): Drop existing link switches if multiple
+ switches are passed for --LINK.
+
2018-03-12 Eric Botcazou <ebotcazou@adacore.com>
PR ada/82813
end if;
-- The other arguments are passed as-is to the linker
+ -- and override those coming from --GCC= if any.
+
+ if L_Args.all'Last >= 2 then
+ Gcc_Linker_Options.Set_Last (0);
+ end if;
for J in 2 .. L_Args.all'Last loop
Gcc_Linker_Options.Increment_Last;