fix treating '*.so' as actual extension
[m6w6/travis-pecl] / Makefile
index 7c570d51b9380a779e3284950018dc12a546aa86..7e0f3bf1120b22eca5c84a1564a135094f0b801a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ reconf: check $(srcdir)/php-$(PHP_VERSION)/configure
 php: check $(bindir)/php | $(PECL_INI)
        -for EXT_SONAME in $(extdir)/*.so; do \
                EXT_SONAME=$$(basename $$EXT_SONAME); \
-               if ! grep -q extension=$$EXT_SONAME $(PECL_INI); then \
+               if test "$$EXT_SONAME" != "*.so" && ! grep -q extension=$$EXT_SONAME $(PECL_INI); then \
                        echo extension=$$EXT_SONAME >> $(PECL_INI); \
                fi \
        done