先に必要なライブラリをコンパイルします。
setup.sh
#!/bin/sh if [ $# -eq 1 ]; then . ../../setup-pre.sh $1 else . ../../setup-pre.sh fi PKG_CONFIG="/usr/local/bin/$ISA/pkg-config"; export PKG_CONFIG PCRE_CFLAGS="-I/usr/local/include"; export PCRE_CFLAGS PCRE_LIBS="-L/usr/local/lib$LIBISA -R/usr/local/lib$LIBISA -lpcre" export PCRE_LIBS ./configure $CONFDIRS \ --enable-static \ --with-pcre=system
makeしてインストールします。
./setup.sh [i386|amd64|sparcv8plus|sparcv9] % gmake # gmake install
setup.sh
#!/bin/sh if [ $# -eq 1 ]; then . ../../setup-pre.sh $1 else . ../../setup-pre.sh fi PKG_CONFIG=/usr/local/bin/$ISA/pkg-config; export PKG_CONFIG ./configure $CONFDIRS \ --x-includes=/usr/openwin/include \ --x-libraries=/usr/openwin/lib \ --with-x
makeしてインストールします。
./setup.sh [i386|amd64|sparcv8plus|sparcv9] % gmake # gmake install
ctime_rの引数に矛盾が生じますので_POSIX_PTHREAD_SEMANTICSを定義し ます。
setup.sh#!/bin/sh if [ $# -eq 1 ]; then . ../../setup-pre.sh $1 else . ../../setup-pre.sh fi PKG_CONFIG=/usr/local/bin/$ISA/pkg-config; export PKG_CONFIG CC=$GCCBIN; export CC if [ "$ISA" = "sparcv9" -o "$ISA" = "amd64" ]; then CFLAGS="-O2 -m64" elif [ "$ISA" = "sparcv8plus" -o "$ISA" = "i386" ]; then CFLAGS="-O2" fi export CFLAGS CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS" export CPPFLAGS ./configure $CONFDIRS \ --x-includes=/usr/openwin/include \ --x-libraries=/usr/openwin/lib \ --with-x
makeしてインストールします。
./setup.sh [i386|amd64|sparcv8plus|sparcv9] % gmake # gmake install
setup.sh
#!/bin/sh if [ $# -eq 1 ]; then . ../../setup-pre.sh $1 else . ../../setup-pre.sh fi PKG_CONFIG=/usr/local/bin/$ISA/pkg-config; export PKG_CONFIG ./configure $CONFDIRS \ --enable-static \ --x-includes=/usr/openwin/include \ --x-libraries=/usr/openwin/lib \ --with-x
makeしてインストールします。
./setup.sh [i386|amd64|sparcv8plus|sparcv9] % gmake # gmake install
setup.sh
#!/bin/sh if [ $# -eq 1 ]; then . ../../setup-pre.sh $1 else . ../../setup-pre.sh fi PKG_CONFIG=/usr/local/bin/$ISA/pkg-config; export PKG_CONFIG ./configure $CONFDIRS
makeしてインストールします。
./setup.sh [i386|amd64|sparcv8plus|sparcv9] % gmake # gmake install
最後にコンパイルします。
setup.sh
#!/bin/sh if [ $# -eq 1 ]; then . ../setup-pre.sh $1 else . ../setup-pre.sh fi PKG_CONFIG="/usr/local/bin/$ISA/pkg-config"; export PKG_CONFIG ./configure $CONFDIRS \ --enable-static
makeしてインストールします。
./setup.sh [i386|amd64|sparcv8plus|sparcv9] % gmake # gmake install