Skip to content

Instantly share code, notes, and snippets.

@smx-smx
Created January 29, 2022 21:45
Show Gist options
  • Select an option

  • Save smx-smx/660baac45f7f44fa7bb72648cb1fe57a to your computer and use it in GitHub Desktop.

Select an option

Save smx-smx/660baac45f7f44fa7bb72648cb1fe57a to your computer and use it in GitHub Desktop.
build-php-embed
CFLAGS="-fPIC -Os -ffunction-sections -fdata-sections" \
./configure \
--prefix=$PWD/out \
--host=arm-buildroot-linux-gnueabi \
--with-ffi \
--disable-all \
--disable-sockets \
--disable-fileinfo \
--disable-phpdbg \
--without-pdo-sqlite \
--without-sqlite3 \
--without-zlib \
--disable-xmlreader \
--disable-xmlwriter \
--without-expat \
--disable-xml \
--disable-simplexml \
--without-libxml \
--disable-dom \
--disable-phar \
--without-zip \
--disable-cgi \
--disable-fpm \
--disable-pdo \
--without-iconv \
--without-readline \
--disable-filter \
--disable-tokenizer \
--disable-session \
--disable-mbregex \
--disable-cli \
--without-mhash \
--enable-embed=static \
--disable-mbstring \
--with-config-file-scan-dir=/tmp \
--with-pic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment