Skip to content

Commit

Permalink
Merge branch 'topic/kliemann/certified-rts-9' into 'master'
Browse files Browse the repository at this point in the history
Fix shared runtime builds

See merge request eng/toolchain/bb-runtimes!41
  • Loading branch information
jklmnn committed Sep 26, 2023
2 parents 001cbf8 + 458e5f5 commit 7e741e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions support/data/ravenscar_build.gpr.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ project Ravenscar_Build is

for Source_Dirs use ("{source_dirs}");

package Builder is
for Default_Switches ("Ada") use Target_Options.LFLAGS;
end Builder;

package Compiler is
for Default_Switches ("C") use Target_Options.GNARL_CFLAGS;
for Default_Switches ("Ada") use Target_Options.GNARL_ADAFLAGS;
Expand Down
4 changes: 0 additions & 4 deletions support/data/runtime_build.gpr.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ project Runtime_Build is
for Spec_Suffix ("Asm_CPP") use ".inc";
end Naming;

package Builder is
for Default_Switches ("Ada") use Target_Options.LFLAGS;
end Builder;

package Compiler is
for Default_Switches ("C") use Target_Options.ALL_CFLAGS;
for Default_Switches ("Ada") use Target_Options.ALL_ADAFLAGS;
Expand Down
6 changes: 2 additions & 4 deletions support/data/target_options.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ abstract project Target_Options is
"-fpreserve-control-flow");
end case;
-- Linker flags, used for building shared libraries
LFLAGS := ();
LOPTIONS := ();
case Lib is
when "static" =>
Expand All @@ -52,9 +51,8 @@ abstract project Target_Options is
-- link against libgnat (itself).
-- Since -nostdlib also removes libgcc
-- from the linked libraries we have to
-- add -lm again.
LFLAGS := LFLAGS & ("-nostdlib");
LOPTIONS := LOPTIONS & ("-lgcc");
-- add -lgcc again.
LOPTIONS := LOPTIONS & ("-nostdlib", "-lgcc");
end case;

-- Concatenate with common flags
Expand Down

0 comments on commit 7e741e3

Please sign in to comment.