From: <jbo...@li...> - 2006-05-19 12:13:57
|
Author: jfr...@jb... Date: 2006-05-19 08:13:49 -0400 (Fri, 19 May 2006) New Revision: 4325 Modified: labs/jbossweb/trunk/src/share/native/build/buildphp.sh Log: Now builds on Solaris10, i386 with SunStudio. Modified: labs/jbossweb/trunk/src/share/native/build/buildphp.sh =================================================================== --- labs/jbossweb/trunk/src/share/native/build/buildphp.sh 2006-05-19 09:16:42 UTC (rev 4324) +++ labs/jbossweb/trunk/src/share/native/build/buildphp.sh 2006-05-19 12:13:49 UTC (rev 4325) @@ -16,7 +16,7 @@ XML2URL=ftp://xmlsoft.org/libxml2/libxml2-${XML2VER}.tar.gz PSQLVER=8.1.3 -PSQLURL=http://wwwmaster.postgresql.org/redir?ftp%3A%2F%2Fftp2.ch.postgresql.org%2Fpub%2Fpostgresql%2Fsource%2Fv${PSQLVER}%2Fpostgresql-${PSQLVER}.tar.gz +PSQLURL=http://wwwmaster.postgresql.org/redir?ftp://ftp2.ch.postgresql.org/pub/postgresql/source/v${PSQLVER}/postgresql-${PSQLVER}.tar.gz OSSLVER="0.9.8b" OSSLURL=http://www.openssl.org/source/openssl-${OSSLVER}.tar.gz @@ -217,6 +217,7 @@ ADDFLAGS="-I $JAVA_HOME/include/linux" ;; dev13*) + EXTTYPE=shared BUILDXML2=true BUILDPSQL=true BUILDOSSL=true @@ -225,8 +226,9 @@ export CC COMPILER=solaris-x86-cc ADDCONF="\ + --with-iconv-dir=/usr/local \ --with-libxml-dir=$TOOLS/LIBXML2 \ - --with-jpeg-dir \ + --with-jpeg-dir=no \ --with-png-dir=$TOOLS/LPNG \ --with-freetype-dir=/usr/sfw \ --with-t1lib \ @@ -324,6 +326,14 @@ rm -f php-${PHPVER}/$CACHE # configure php +if [ ${CC} = "cc" ] +then + # Sun Studio + CC=cc + export CC + CPPFLAGS="-I/opt/SUNWspro/prod/include/CC/Cstd/rw -I/opt/SUNWspro/prod/include/CC/Cstd -DHUGE_VAL=__builtin_huge_val" + export CPPFLAGS +fi (cd php-${PHPVER} ./configure --prefix=$TOOLS/PHP \ --cache-file=$CACHE \ @@ -355,6 +365,7 @@ --enable-wddx \ --with-xmlrpc \ \ + --without-pear \ --with-ncurses=no \ --with-fbsql=no \ --with-fdftk=no \ @@ -424,8 +435,13 @@ #-DPTHREADS to use pthreads. # +if [ ${CC} = "cc" ] +then + # Sun Studio + ADDFLAGS="$ADDFLAGS -I/opt/SUNWspro/prod/include/CC/Cstd/rw -I/opt/SUNWspro/prod/include/CC/Cstd -DHUGE_VAL=__builtin_huge_val" +fi (cd ../php5servlet - gcc -c $ADDFLAGS \ + $CC -c $ADDFLAGS \ -I $JAVA_HOME/include \ -I $TOOLS/PHP/include/php/main \ -I $TOOLS/PHP/include/php/Zend \ |