Skip to content

Commit

Permalink
Merge pull request #300 from jingjingxyk/build_native_php
Browse files Browse the repository at this point in the history
更新freetype 配置
  • Loading branch information
jingjingxyk authored Jul 28, 2023
2 parents 7ba44b4 + 97974b5 commit f589e82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sapi/src/builder/library/freetype.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@
->withConfigure(
<<<EOF
./configure --help
PACKAGES='zlib libpng libbrotlicommon libbrotlienc libbrotlidec '
BZIP2_CFLAGS="-I{$bzip2_prefix}/include" \
BZIP2_LIBS="-L{$bzip2_prefix}/lib -lbz2" \
CPPFLAGS="$(pkg-config --cflags-only-I --static zlib libpng libbrotlicommon libbrotlidec libbrotlienc)" \
LDFLAGS="$(pkg-config --libs-only-L --static zlib libpng libbrotlicommon libbrotlidec libbrotlienc)" \
LIBS="$(pkg-config --libs-only-l --static zlib libpng libbrotlicommon libbrotlidec libbrotlienc)" \
./configure --prefix={$freetype_prefix} \
--enable-static \
--disable-shared \
CPPFLAGS="$(pkg-config --cflags-only-I --static \$PACKAGES)" \
LDFLAGS="$(pkg-config --libs-only-L --static \$PACKAGES)" \
LIBS="$(pkg-config --libs-only-l --static \$PACKAGES)" \
./configure \
--prefix={$freetype_prefix} \
--enable-shared=no \
--enable-static=yes \
--with-zlib=yes \
--with-bzip2=yes \
--with-png=yes \
Expand Down
2 changes: 2 additions & 0 deletions sapi/src/builder/library/pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
return function (Preprocessor $p) {
$pgsql_prefix = PGSQL_PREFIX;
$option = '';

$ldflags = $p->getOsType() == 'macos' ? '' : ' -static ';

if ($p->getOsType() == 'macos') {
$option = '--disable-thread-safety';
}
Expand Down

0 comments on commit f589e82

Please sign in to comment.