Skip to content

Commit b9f3f35

Browse files
committed
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>
1 parent 6af5b36 commit b9f3f35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,9 @@ PHP_SET_LIBTOOL_VARIABLE([--silent])
15351535
dnl libtool 1.4.3 needs this.
15361536
PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps])
15371537

1538+
dnl This needs to be passed explicitly to allow scan-build compiler overrides.
1539+
PHP_SET_LIBTOOL_VARIABLE([--tag CC])
1540+
15381541
test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
15391542
test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
15401543
SHARED_LIBTOOL='$(LIBTOOL)'

0 commit comments

Comments
 (0)