以下のスクリプトを実行します。
#!/bin/sh if [ $# -eq 1 ]; then . ../setup-pre.sh $1 else . ../setup-pre.sh fi CC=$GCCBIN; export CC if [ "$ISA" = "sparcv9" -o "$ISA" = "amd64" ]; then CISAFLAGS="-m64" fi CFLAGS=$CISAFLAGS; export CFLAGS CPPFLAGS="-I$mysqlinc $CPPFLAGS"; export CPPFLAGS LDFLAGS="-L$mysqllib -R$mysqllib $LDFLAGS"; export LDFLAGS PATH=/usr/local/bin/$ISA:$PATH; export PATH ./configure $CONFDIRS \ --libexecdir=$libexecpath \ --datadir=$datapath \ --localstatedir=/var \ --libdir=/usr/local/lib$LIBISA \ --mandir=/usr/local/share/man \ --with-layout=GNU \ --with-config-file-scan-dir=/etc/php \ --with-libxml-dir \ --with-openssl \ --with-kerberos \ --with-pcre-regex=/usr/local \ --with-zlib \ --with-bz2 \ --enable-calendar \ --with-curl \ --with-db4 \ --enable-exif \ --enable-ftp \ --with-gd \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-gettext \ --with-mysql=$mysqlpath \ --with-ldap \ --with-ldap-sasl \ --enable-mbstring \ --with-snmp \ --enable-ucd-snmp-hack \ --enable-soap \ --enable-sockets \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-zip
% ./setup.sh [sparcv8plus|i386]
/usr/sfw/lib以下のmysqlclientライブラリをリンクしないように、出来 上がったMakefileを修正します。
- EXTRA_LDFLAGS = -L/usr/ucblib -L/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3 -L/usr/sfw/lib -L/usr/local/lib -L/usr/local/kerberos/lib -L/usr/local/lib/mysql -L/usr/local/heimdal/lib + EXTRA_LDFLAGS = -L/usr/local/lib -R/usr/local/lib -L/usr/local/kerberos/lib -L/usr/local/lib/mysql -R/usr/local/lib/mysql -L/usr/local/heimdal/lib -L/usr/ucblib -L/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3 -L/usr/sfw/lib
makeしてインストールします。
% gmake # gmake install
Copyright ©2000-2018 T.Hiraga <hiraga@next-hop.net> All Rights Reserved. Last modified: $Date: 2010/03/17 00:42:01 $ |