Skip to content

Commit

Permalink
Remove -pthread from shared library build
Browse files Browse the repository at this point in the history
Remove -pthread from the linker options used to build a shared runtime.
While this switch may be needed on some systems it is not available on
QNX and causes the build to fail there. For future platforms that need
this switch a feature to set platform specific linker options will be
introduced.

ref eng/toolchain/bb-runtimes#106
  • Loading branch information
jklmnn authored and Aleksandra Pasek committed Nov 26, 2024
1 parent 1d78606 commit 15c2bfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions support/data/target_options.gpr.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ abstract project Target_Options is
-- Since -nostdlib also removes libgcc
-- from the linked libraries we have to
-- add -lc and -lgcc again.
-- Also add -pthread in case it is not already included in -lc.
LOPTIONS := LOPTIONS & ("-nostdlib", "-lc", "-lgcc", "-pthread");
LOPTIONS := LOPTIONS & ("-nostdlib", "-lc", "-lgcc");
end case;

-- Concatenate with common flags
Expand Down

0 comments on commit 15c2bfd

Please sign in to comment.