码迷,mamicode.com
首页 > 其他好文 > 详细

Cross compiling coreutils and generate the manpages

时间:2015-07-02 19:34:32      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:

When we cross compiling coreutils, there is an problem of generating man pages, because the source script use the binaries generated by make process to produce man pages, but the cross compiled binaries cannot run on build machine.

In order to resolve this problem, we should compile the coreutils using native compiler, and generate the man pages, then copy the man pages (.x .1) to the cross compiling source directory, and restart the make process.

prebuilt man info source tarball:
http://distfiles.gentoo.org/distfiles/coreutils-8.23-man.tar.xz

Usage:

tar xf coreutils-8.23.tar.xz
tar xf coreutils-8.23-man.tar.xz
#configure && make && make install

If that still fails, after you unpack both, try doing:

set -- man/*.x
touch ${@/%x/1}

Ref:
http://lists.gnu.org/archive/html/coreutils/2014-11/msg00003.html

版权声明:本文为博主原创文章,未经博主允许不得转载。

Cross compiling coreutils and generate the manpages

标签:

原文地址:http://blog.csdn.net/stpallas/article/details/46729119

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!