diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-05-01 20:49:30 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-05-01 20:49:30 +0000 |
commit | e461b8e9fe41329308c5fb6f2955db892defc7ae (patch) | |
tree | d3056373be92fff659693b96c101f164ef448877 /data/php/make.sh | |
parent | 5deabf6e98ec940f099df0aaf78c5ca46c54e5b6 (diff) |
Updated PHP.
Diffstat (limited to 'data/php/make.sh')
-rw-r--r-- | data/php/make.sh | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/data/php/make.sh b/data/php/make.sh index a46655ddb..96bf37bd5 100644 --- a/data/php/make.sh +++ b/data/php/make.sh @@ -1,5 +1,20 @@ -pkg:setup +pkg:extract +cd */ +# Build for host +./configure --prefix=${PWD}/host +make install +make distclean +export PATH="${PWD}/host/bin:${PATH}" +# Target +pkg:patch autoconf -CC="${PKG_TARG}"-gcc pkg:configure --with-iconv="${PKG_ROOT}"/usr --with-curl="$(PKG_DEST_ curl)"/usr --enable-fastcgi -make -make install prefix="${PKG_DEST}"/usr datarootdir="${PKG_DEST}"/usr +pkg:configure --enable-fastcgi --enable-opcache=yes \ + --with-readline="$(PKG_DEST_ readline)/${PKG_TAPF}" \ + --with-libxml-dir="${PKG_ROOT}/usr" \ + --with-iconv-dir="${PKG_ROOT}/usr" \ + --with-pcre-regex="$(PKG_DEST_ pcre2)/${PKG_TAPF}" \ + --with-pcre-jit \ + --with-bz2="${PKG_ROOT}/usr" \ + LDFLAGS="-liconv -lresolv" EXTRA_LIBS="-liconv -lresolv" +pkg:make +pkg:install INSTALL_ROOT="${PKG_DEST}" |