[php-src] PR #17633: sapi/*/Makefile.frag: install programs built with libtool, with libtool
| From: | orlitzky | Date: | Thu, 30 Jan 2025 03:01:17 +0000 |
| Subject: | [php-src] PR #17633: sapi/*/Makefile.frag: install programs built with libtool, with libtool | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30583@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17633
Author: orlitzky
When installing executables that were built using libtool, we are supposed to use
```
$ libtool --mode-install <install-command>
```
rather than the bare
<install-command>. This is discussed ever so briefly in the
"Installing executables" section of the [GNU libtool
documentation](https://www.gnu.org/software/libtool/manual/libtool.html) .
So far this has not caused a problem with GNU libtool on the platforms that PHP supports, but there
is an alternate libtool implementation called slibtool that stores wrappers at the locations where
PHP is expecting the true executables to live. As a result, the wrappers (and not the executables)
are installed when slibtool is used to build PHP.
This is fixed by replacing $(INSTALL) with $(LIBTOOL) --mode=install
$(INSTALL) in the install-foo rules for the executables that are built with libtool.
Targeting 8.3 since it's a bugfix, but not a hugely important one. Merging 8.3->master
already has a merge conflict, albeit a trivial one.
Closes:
* GH-13674