libtool: Add CC tag explicitly

This fixes the scan-build build. CC is also the default tag, so there
should be no impact anywhere.

Signed-off-by: Anatol Belski <ab@php.net>
This commit is contained in:
Anatol Belski 2021-05-26 22:39:42 +02:00
parent 6af5b369d7
commit b9f3f35d4a
No known key found for this signature in database
GPG key ID: BCAA30EA9C0D5763

View file

@ -1535,6 +1535,9 @@ PHP_SET_LIBTOOL_VARIABLE([--silent])
dnl libtool 1.4.3 needs this.
PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps])
dnl This needs to be passed explicitly to allow scan-build compiler overrides.
PHP_SET_LIBTOOL_VARIABLE([--tag CC])
test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
SHARED_LIBTOOL='$(LIBTOOL)'