Skip to content

Commit

Permalink
Merge branch 'topic/kliemann/certified-rts-145-shared' into 'master'
Browse files Browse the repository at this point in the history
Add -lc to shared library builds

See merge request eng/toolchain/bb-runtimes!140
  • Loading branch information
jklmnn committed Nov 12, 2024
2 parents 3f82b97 + c0c0517 commit 0549443
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions support/data/target_options.gpr.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ abstract project Target_Options is
-- link against libgnat (itself).
-- Since -nostdlib also removes libgcc
-- from the linked libraries we have to
-- add -lgcc again.
LOPTIONS := LOPTIONS & ("-nostdlib", "-lgcc");
-- add -lc and -lgcc again.
-- Also add -pthread in case it is not already included in -lc.
LOPTIONS := LOPTIONS & ("-nostdlib", "-lc", "-lgcc", "-pthread");
end case;

-- Concatenate with common flags
Expand Down

0 comments on commit 0549443

Please sign in to comment.