diff --git a/lang/php5/Makefile b/lang/php5/Makefile index d08622361..f7a728c24 100644 --- a/lang/php5/Makefile +++ b/lang/php5/Makefile @@ -471,6 +471,7 @@ define Build/InstallDev $(CP) $(PKG_BUILD_DIR)/staging/* $(STAGING_DIR_HOST) sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize + sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR_HOST)/usr\"#" $(STAGING_DIR_HOST)/usr/bin/php-config endef define BuildModule diff --git a/lang/php5/pecl.mk b/lang/php5/pecl.mk index ec0f3e278..6bf1928f5 100644 --- a/lang/php5/pecl.mk +++ b/lang/php5/pecl.mk @@ -19,6 +19,9 @@ define Build/Configure $(Build/Configure/Default) endef +CONFIGURE_ARGS+= \ + --with-php-config=$(STAGING_DIR_HOST)/usr/bin/php-config + define PECLPackage define Package/php5-pecl-$(1)