以下のスクリプトを実行します。
#!/bin/sh if [ $# -eq 1 ]; then . ../setup-pre.sh $1 else . ../setup-pre.sh fi CC="gcc"; export CC if [ "$ISA" = "sparcv9" -o "$ISA" = "amd64" ]; then CFLAGS="-O2 -m64" else CFLAGS="-O2" fi export CFLAGS ./configure $CONFDIRS
% ./setup.sh [i386|amd64|sparcv8plus|sparcv9]
makeしてインストールします。
% gmake # gmake install
ISA自動起動リンクを作るために、以下のスクリプトを実行します。
#!/bin/sh # BINPROG="file" if [ "${BINPROG}" != "" ]; then cd /usr/local/bin for prog in ${BINPROG} do rm -f $prog ln /usr/lib/isaexec $prog echo $prog done fi
Copyright ©2000-2018 T.Hiraga <hiraga@next-hop.net> All Rights Reserved. Last modified: $Date: 2009/09/07 08:14:58 $ |