diff mbox

ndisc6: needs mmu

Message ID 1380964029.3121.0.camel@phoenix
State Accepted
Commit f1b0e95a245aaa5fe6efe9cd6b9ae6a0fe48c4b1
Headers show

Commit Message

Axel Lin Oct. 5, 2013, 9:07 a.m. UTC
Fix below build error if !BR2_USE_MMU:

tcpspray.o: In function `tcpspray':
tcpspray.c:(.text+0x4a8): undefined reference to `fork'
collect2: ld returned 1 exit status
make[3]: *** [tcpspray] Error 1

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 package/ndisc6/Config.in | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Korsgaard Oct. 5, 2013, 7:12 p.m. UTC | #1
>>>>> "Axel" == Axel Lin <axel.lin@ingics.com> writes:

 Axel> Fix below build error if !BR2_USE_MMU:
 Axel> tcpspray.o: In function `tcpspray':
 Axel> tcpspray.c:(.text+0x4a8): undefined reference to `fork'
 Axel> collect2: ld returned 1 exit status
 Axel> make[3]: *** [tcpspray] Error 1

Committed, thanks.
diff mbox

Patch

diff --git a/package/ndisc6/Config.in b/package/ndisc6/Config.in
index 6abe4ce..095b2e8 100644
--- a/package/ndisc6/Config.in
+++ b/package/ndisc6/Config.in
@@ -4,6 +4,7 @@  comment "ndisc6 requires a toolchain with IPv6 support"
 config BR2_PACKAGE_NDISC6
 	bool "ndisc6 tools"
 	depends on BR2_INET_IPV6
+	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
 	help
 	  NDisc6 is a small collection of useful tools for IPv6 networking