inline-section-gc.exp ends up passing "-lm" to gnatmake as an "marg"
-- meaning gnatmake should process it itself. However, the gnat-llvm
gnatmake does not know what to do with this, so the test fails.
This patch rearranges the arguments so that the (implicit) trailing
-lm ends up being passed through to the linker.
debug
optimize=-O2
additional_flags=-ffunction-sections
- ldflags=-largs
- ldflags=-Wl,--gc-sections
ldflags=-margs
additional_flags=-gnatn
+ ldflags=-largs
+ ldflags=-Wl,--gc-sections
}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $options] != ""} {
return -1