#!/bin/sh # Export variables needed for compilation export CFLAGS="-O2 -pipe -march=i486 -mtune=i686" export CXXFLAGS="-O2 -pipe -fno-exceptions -fno-rtti -march=i486 -mtune=i686" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig # Configure it ./configure \ --prefix=/usr/local \ --sysconfdir=/usr/local/etc \ --mandir=/usr/local/share/man \ --with-fpm-user=tc \ --with-fpm-group=staff \ --with-zlib \ --enable-bcmath \ --with-bz2 \ --enable-calendar \ --enable-dba=shared \ --with-gdbm \ --with-gmp \ --enable-ftp \ --with-gettext \ --enable-mbstring \ --with-readline \ --with-mysqli \ --enable-embedded-mysqli \ --with-openssl \ --with-curl \ --with-pcre-regex \ --with-mcrypt \ --enable-exif \ --with-config-file-path=/usr/local/etc \ --with-apxs2=/usr/local/bin/apxs \ --disable-fpm \ --with-pdo-mysql # Compile make -j1