From 15c2bfd281a33d4f3a9fd29247ab61977c3d8233 Mon Sep 17 00:00:00 2001 From: Johannes Kliemann Date: Wed, 13 Nov 2024 13:09:15 +0100 Subject: [PATCH] Remove -pthread from shared library build 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 --- support/data/target_options.gpr.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/data/target_options.gpr.in b/support/data/target_options.gpr.in index 0a210760..9acf7fea 100644 --- a/support/data/target_options.gpr.in +++ b/support/data/target_options.gpr.in @@ -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