Skip to content

Instantly share code, notes, and snippets.

@tsertkov
Created September 9, 2013 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsertkov/6495078 to your computer and use it in GitHub Desktop.
Save tsertkov/6495078 to your computer and use it in GitHub Desktop.
Script for executing "configure" from php source directory with predefined configuration and compiler options.
export CHOST="x86_64-pc-linux-gnu"
export CFLAGS="-O2 -march=native -pipe"
export CXXFLAGS="${CFLAGS}"
./configure \
--prefix=/opt/${PWD##/*/} \
--with-apxs2=/opt/apache-dev/bin/apxs \
--disable-cgi \
--with-openssl \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--with-curl \
--enable-exif \
--enable-ftp \
--with-openssl-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-t1lib \
--enable-gd-native-ttf \
--with-gettext \
--enable-intl \
--enable-mbstring \
--with-mcrypt \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--enable-sqlite-utf8 \
--enable-soap \
--enable-sockets \
--with-tidy \
--enable-wddx \
--with-xmlrpc \
--with-xsl \
--enable-zip \
--with-ldap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment