fix(tests/Makefile): use correct dynamic linker path depending on target

This commit is contained in:
Anhad Singh
2025-12-09 15:02:34 +11:00
parent 396a0d20bf
commit 843f3f89ff
+2 -2
View File
@@ -373,7 +373,7 @@ DYNAMIC_FLAGS=\
-Wl,--enable-new-dtags \
-Wl,-export-dynamic
SYSROOT?=../sysroot/$(TARGET)/
SYSROOT?=$(abspath ../sysroot/$(TARGET)/)
$(SYSROOT):
$(MAKE) -C .. sysroot
@@ -394,7 +394,7 @@ STATIC_FLAGS+=\
$(SYSROOT_LIB)/libc.a
DYNAMIC_FLAGS+=\
-Wl,-dynamic-linker=$(SYSROOT_LIB)/ld64.so.1 \
-Wl,-dynamic-linker=$(SYSROOT)/$(LD_SO_PATH) \
-Wl,-rpath=$(SYSROOT_LIB):\$$ORIGIN \
-L $(SYSROOT_LIB) \
-lc \