mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
50352c5b75
commit
fd907e6ef4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue