From 9ace92dd7a17f6a2ae7cf50508238fd3b5ae7955 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Wed, 14 Feb 2018 00:30:39 +0100 Subject: [PATCH] php7: fix linking to libpcre PHP comes with a bundled version of libpcre which is then statically linked. However, we already depend on the packaged library, so we can reduce the footprint when linking to it dynamically. This saves around 200-300 kB (this depends on other configuration). Signed-off-by: Michael Heimpold --- lang/php7/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/php7/Makefile b/lang/php7/Makefile index aaee08f34a..996a4e2115 100644 --- a/lang/php7/Makefile +++ b/lang/php7/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=php PKG_VERSION:=7.2.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Michael Heimpold @@ -167,6 +167,7 @@ CONFIGURE_ARGS+= \ --with-config-file-scan-dir=/etc/php7 \ --disable-short-tags \ \ + --with-pcre-regex="$(STAGING_DIR)/usr" \ --with-zlib="$(STAGING_DIR)/usr" \ --with-zlib-dir="$(STAGING_DIR)/usr" -- 2.30.2