Commit 455cb823 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix C++ support in RPI

parent 90ab2e99
......@@ -143,7 +143,6 @@ project @_CAPITALIZE:Name_@ is
"-ffunction-sections",
"-fdiagnostics-color=always",
"-Wno-cast-function-type",
"-Wmissing-prototypes",
@@IF@@ @_Coverage_@
"-fprofile-arcs",
"-ftest-coverage",
......@@ -164,7 +163,7 @@ project @_CAPITALIZE:Name_@ is
case Build is
when "Release" =>
for Default_Switches ("C") use Common_C_Switches & ("-O2", "-DNDEBUG");
for Default_Switches ("C") use Common_C_Switches & ("-O2", "-DNDEBUG" ,"-Wmissing-prototypes");
for Default_Switches ("C++") use Common_C_Switches & ("-O2", "-DNDEBUG");
for Default_Switches ("Ada") use Common_Ada_Switches & ("-O2", "-DNDEBUG");
when "Debug" =>
......@@ -185,6 +184,7 @@ project @_CAPITALIZE:Name_@ is
"-lm",
@@IF@@ @_CPU_Platform_@ = PLATFORM_RPI
"-lgnat",
"-lstdc++",
@@END_IF@@
@@IF@@ @_Coverage_@
"-fprofile-arcs",
......
......@@ -116,8 +116,8 @@ configuration project Raspberry_PI is
for Export_File_Switch use "-Wl,--version-script=";
for Map_File_Option use "-Wl,-Map,";
for Default_Switches ("C") use Common_C_Linker_Switches;
for Default_Switches ("C++") use Common_C_Linker_Switches;
for Default_Switches ("Ada") use ("-pipe", "-g", "-lm");
for Default_Switches ("C++") use Common_C_Linker_Switches & ("-lstdc++");
for Default_Switches ("Ada") use ("-pipe", "-g", "-lm", "-lgnat");
end Linker;
package Clean is
......
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