sandbox: Make use of PLATFORM_LIBS for ulib_test

Rather than specifying the sandbox-specific arguments in the main
Makefile, make use of PLATFORM_LIBS which has (more than) what we need.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-05 12:55:16 -06:00
parent 322ecf11af
commit c3841693b3

View File

@@ -1905,7 +1905,7 @@ quiet_cmd_ulib_test_static = HOSTCC $@
-I$(srctree)/arch/sandbox/include -o $@ $< \
-Wl,-T,$(LIB_STATIC_LDS) \
-Wl,--whole-archive $(obj)/libu-boot.a -Wl,--no-whole-archive \
-lpthread -ldl -lSDL2 -lrt -Wl,-z,noexecstack
-ldl $(PLATFORM_LIBS) -Wl,-z,noexecstack
test/ulib/ulib_test_static: test/ulib/ulib_test.o libu-boot.a \
$(LIB_STATIC_LDS) FORCE