Commit 02ec3974 authored by Maxime Perrotin's avatar Maxime Perrotin

compile buildsupport with -no-pie

Recent versions of gcc are compiled by default with -pie (position-independent executable) enabled, which makes the symbol addresses in binaries depending on an offset which is only known at runtime. The side effect is that addr2line becomes unable to locate the symbols to display traceback in case of a runtime exception.
parent ab4605f0
......@@ -27,7 +27,8 @@ project BuildSupport is
"-gnatwa",
"-gnatoa",
"-gnatg",
"-fstack-check");
"-fstack-check",
"-no-pie");
for Default_Switches ("C") use
("-g",
......@@ -53,7 +54,8 @@ project BuildSupport is
"-Wno-error=old-style-cast",
"-Wundef",
"-std=c11",
"-pedantic");
"-pedantic",
"-no-pie");
end Compiler;
end BuildSupport;
......
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