Skip to content

Commit

Permalink
fix swoole dependency libcares (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk authored Jun 7, 2024
1 parent 566a62c commit 625c641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sapi/src/builder/extension/swoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@

$libs = $p->isMacos() ? '-lc++' : ' -lstdc++ ';
$p->withVariable('LIBS', '$LIBS ' . $libs);

$p->withExportVariable('CARES_CFLAGS', '$(pkg-config --cflags --static libcares)');
$p->withExportVariable('CARES_LIBS', '$(pkg-config --libs --static libcares)');
};

0 comments on commit 625c641

Please sign in to comment.