[Buildroot] [git commit] nano: needs mmu

Peter Korsgaard peter at korsgaard.com
Thu Oct 3 10:12:44 UTC 2013


commit: http://git.buildroot.net/buildroot/commit/?id=3b901a16634d5bc66f14df87a04310a382c6e8e0
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix below build error if !BR2_USE_MMU:

text.o: In function `execute_command':
text.c:(.text+0x7f8): undefined reference to `fork'
text.o: In function `do_int_speller':
text.c:(.text+0x3480): undefined reference to `fork'
text.c:(.text+0x34f4): undefined reference to `fork'
text.c:(.text+0x3568): undefined reference to `fork'
text.o: In function `do_alt_speller':
text.c:(.text+0x3914): undefined reference to `fork'
collect2: ld returned 1 exit status
make[3]: *** [nano] Error 1

[Peter: fork() only in full version, so force tiny for !mmu]
Signed-off-by: Axel Lin <axel.lin at ingics.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/nano/Config.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/package/nano/Config.in b/package/nano/Config.in
index ef7f69d..9546fe7 100644
--- a/package/nano/Config.in
+++ b/package/nano/Config.in
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_NANO
 	bool "nano"
+	# full version uses fork()
+	select BR2_PACKAGE_NANO_TINY if !BR2_USE_MMU
 	select BR2_PACKAGE_NCURSES
 	help
 	  A nice ncurses-based editor. Started out as a clone of pico.


More information about the buildroot mailing list