sim: pass no-pie through gcc driver

Pass -no-pie through the gcc driver instead of forwarding it as -Wl,-no-pie.

On Ubuntu 20 with GCC 9, sim:nsh failed during the final link step with /usr/bin/ld: cannot find -lgcc_s.

This change fixes the link failure in that environment.

Signed-off-by: hanzhijian <hanzhijian@zepp.com>
This commit is contained in:
hanzhijian
2026-05-20 11:48:22 +08:00
committed by Alan C. Assis
parent 50352c5b75
commit fd907e6ef4
+1 -1
View File
@@ -336,7 +336,7 @@ else ifeq ($(CONFIG_HOST_MACOS)$(CONFIG_HOST_ARM64),)
# which works correctly on aarch64 hosts.
ARCHCFLAGS += -no-pie
ARCHPICFLAGS += -no-pie
LDFLAGS += -Wl,-no-pie
LDFLAGS += -no-pie
endif
ifeq ($(CONFIG_HOST_LINUX),y)