[php-src] PR #14924: Autotools: Enhance PHP_EVAL_LIBLINE M4 macro
| From: | petk | Date: | Thu, 11 Jul 2024 20:20:47 +0000 |
| Subject: | [php-src] PR #14924: Autotools: Enhance PHP_EVAL_LIBLINE M4 macro | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27195@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14924
Author: petk
PHP_EVAL_LIBALINE macro processes the given libraries flags (-l) and/or library paths flags (-L) and
appends the -l flags to either LIBS or the given *_SHARED_LIBADD variables. The -L flags are
appended to the LDFLAGS. The new 3rd argument enables appending libraries to the given variable in
the 2nd argument without manual setting whether the extension is shared. For example, to simplify
usage in SAPIs where additional libraries need to be appended but they shouldn't go to the
global LIBS. This can be then used in PHP-FPM SAPI to link apparmor, SELinux, systemd, etc.
This will simplify these PRs:
* https://github.com/php/php-src/pull/14885
* https://github.com/php/php-src/pull/14884
* https://github.com/php/php-src/pull/14883