mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
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:
committed by
Alan C. Assis
parent
50352c5b75
commit
fd907e6ef4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user