なには ともあれ”configure” ですが 今回は ”--target”を ”--host” する 等 少々 異る方法を とります。
その前に
make install_root=${TARGET_PREFIX} prefix="" install
の 最終段階で エラー が出るので 修正を 先にしておきます。謝謝多謝!
http://www.kegel.com/crosstool/current/patches/glibc-2.1.3/glibc-manual-stdin.texi-1.127.patch
$ cd glibc-2.2.3/manual/
$ cp stdio.texi stdio.texi-ORG
$ vi stdio.texi
$ diff -s stdio.texi stdio.texi-ORG
3268,3269c3268,3269
< @code{scanf}. For more information about these tools, see @ref{Top, , ,
< flex.info, Flex: The Lexical Scanner Generator}, and @ref{Top, , ,
---
> @code{scanf}. For more information about these tools, see @ref{, , ,
> flex.info, Flex: The Lexical Scanner Generator}, and @ref{, , ,
$ cd -
/home/ksim/proj/build-tools
”Top”を 追加
へたら configure してゆきます。移動して
$ cd ../../build-glibc/ $ pwd /home/ksim/proj/build-tools/build-glibc $ ls -a ./ ../
その前に 出来たてほやほや
$ echo $PATH
/home/ksim/proj/tools/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:\
/usr/local/netpbm:/usr/openwin/bin:/usr/games/bin:/usr/games
$ i386-linux-gcc
i386-linux-gcc: No input files
$ i386-linux-gcc --help
...
$ echo ${TARGET_PREFIX}
/home/ksim/proj/tools/i386-linux
$ echo ${TARGET_PREFIX}/include
/home/ksim/proj/tools/i386-linux/include
$ ls ${TARGET_PREFIX}/include
asm/ asm-generic/ linux/
色々な オプションを 付けて 行います。
$ CC=i386-linux-gcc \
../glibc-2.2.3/configure --host=$TARGET \
--prefix="/usr" --enable-add-ons \
--with-headers=${TARGET_PREFIX}/include \
2>&1 | tee log-config-glibc-2.2.3
ともかく glibc の 使用環境を 考慮する点 が 必要と いうことです。
にゃんたろう 拝!
2011年 3月18日 (金) 21:02:16 JST 作成
2011年 7月25日 (月) 21:44:55 JST 改定