Skip to content

Commit

Permalink
arch: x86: Fix x86 linking
Browse files Browse the repository at this point in the history
Summary:
- I noticed that qemu-i486:nsh can not start
- Finally, I found that the issue was introduced by 4910d43
- Actually, nuttx_elf was linked dynamically
- This commit fixes this issue

Impact:
- Affects x86 (32bit) only

Testing:
- Tested with qemu-i486:nsh
  • Loading branch information
masayuki2009 authored and xiaoxiang781216 committed Oct 17, 2020
1 parent a0b84ae commit aed9bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ OBJS = $(AOBJS) $(COBJS)

LDSTARTGROUP ?= --start-group
LDENDGROUP ?= --end-group
LDFLAGS += $(ARCHSCRIPT)
LDFLAGS += $(ARCHSCRIPT) -static

BOARDMAKE = $(if $(wildcard board$(DELIM)Makefile),y,)

Expand Down

0 comments on commit aed9bcc

Please sign in to comment.