From: Raymond Mao Date: Wed, 4 Jun 2025 15:48:11 +0000 (-0700) Subject: sandbox: solve undefined reference to pthread_kill symbol X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3507e6208f3df1fc1dedb8fce1e8b71c33b3b804;p=pandora-u-boot.git sandbox: solve undefined reference to pthread_kill symbol This patch is to solve the sandbox building error: $ make O=build-sandbox -s sandbox_defconfig $ make O=build-sandbox -s -j2 /usr/bin/ld: /tmp/u-boot.27rzOu.ltrans58.ltrans.o: undefined reference to symbol 'pthread_kill@@GLIBC_2.2.5' /usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status [...] Fixes: b989f9ed9fe1 ("test: lib: add initjmp() test") Signed-off-by: Raymond Mao Reviewed-by: Jerome Forissier Tested-by: Patrice Chotard --- diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index dd9b7473fa9..9a61e803a57 100644 --- a/arch/sandbox/config.mk +++ b/arch/sandbox/config.mk @@ -3,7 +3,7 @@ PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE PLATFORM_CPPFLAGS += -fPIC -ffunction-sections -fdata-sections -PLATFORM_LIBS += -lrt +PLATFORM_LIBS += -lrt -lpthread SDL_CONFIG ?= sdl2-config # Define this to avoid linking with SDL, which requires SDL libraries