glibc-2.3.3のビルド

杉岡様のサイトから頂いてくる

# rpm --rebuild  --target noarch glibc-2.3.3-27.12.src.rpm

もしくは

$ /usr/src/glibc-2.3.3/configure --prefix=/usr --infodir=/usr/info \
 --mandir=/usr/share/man --target=sh4-linux --host=sh4-linux \
 --enable-add-ons=nptl,libidn --enable-kernel=2.6.0 --disable-profile \
 --with-tls --with-__thread --without-cvs \
 --with-headers=/home/ebihara/project/sh/cat760/kernel/linux-sh-2.6.11/include/
$ CC=sh4-linux-gcc CFLAGS="-finline-limit=2000 -DNDEBUG=1 -O2 -g" make

sh4セルフの場合

 $ /usr/src/glibc-2.3.3/configure \
 --prefix=/usr --enable-add-ons=nptl,libidn --enable-kernel=2.6.0 \
 --disable-profile --with-tls --with-__thread --without-cvs \
 --with-headers=/usr/src/linux-sh-2.6.11-20050331/include/
 $ CFLAGS="-finline-limit=2000 -DNDEBUG=1 -O2 -g"  make