From: Michael Heimpold Date: Sun, 26 Sep 2021 19:57:36 +0000 (+0200) Subject: php7: fix module loading with glibc (refs #16642) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d153c61650c0e5a55f4d9d00fcae6f257992c35f;p=openwrt-packages.git php7: fix module loading with glibc (refs #16642) Without -ldl linker flag .so extensions are not loaded when glibc is used. Fix it by providing adjusted LDFLAGS for this case. Signed-off-by: Michael Heimpold --- diff --git a/lang/php7/Makefile b/lang/php7/Makefile index ed1566459..97ef1fe63 100644 --- a/lang/php7/Makefile +++ b/lang/php7/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=php PKG_VERSION:=7.4.23 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Michael Heimpold PKG_LICENSE:=PHP-3.01 @@ -175,6 +175,10 @@ CONFIGURE_ARGS+= \ --with-external-pcre \ --with-zlib="$(STAGING_DIR)/usr" +ifeq ($(CONFIG_LIBC_USE_GLIBC),y) +TARGET_LDFLAGS += -ldl +endif + ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-bcmath),) CONFIGURE_ARGS+= --enable-bcmath=shared else