logrotate: needs mmu
authorAxel Lin <axel.lin@ingics.com>
Tue, 1 Oct 2013 02:53:13 +0000 (10:53 +0800)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 1 Oct 2013 19:32:35 +0000 (21:32 +0200)
Fix below build error:

logrotate.o: In function `switch_user_permanently':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:129: undefined reference to `fork'
logrotate.o: In function `removeLogFile':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:431: undefined reference to `fork'
logrotate.o: In function `mailLog':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:597: undefined reference to `fork'
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:615: undefined reference to `fork'
logrotate.o: In function `compressLogFile':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:533: undefined reference to `fork'
collect2: ld returned 1 exit status
make[1]: *** [logrotate] Error 1

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/logrotate/Config.in

index 0d0ec610a901ea28fae1db08f668f1ca5e2339fd..bc7b295d38b523fc5fd5b8548f3356d0812c05bf 100644 (file)
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LOGROTATE
        bool "logrotate"
        select BR2_PACKAGE_POPT
        depends on BR2_USE_WCHAR
+       depends on BR2_USE_MMU # fork()
        help
          A simple program to rotate logs.