Commit f8e56962 by Eric Botcazou Committed by Eric Botcazou

re PR ada/85036 (--disable-bootstrap --enable-languages=ada[,c++] fails)

	PR ada/85036
	* gnatlink.adb (Process_Args): Drop existing link switches if multiple
	switches are passed for --LINK.

From-SVN: r258827
parent b05e29ec
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
......
......@@ -544,6 +544,11 @@ procedure Gnatlink is
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment