From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Thu, 30 Jan 2014 17:09:47 +0100 Subject: [Buildroot] [PATCH 2/6] php: fix for external extensions In-Reply-To: <1390944391-3892-2-git-send-email-gustavo@zacarias.com.ar> (Gustavo Zacarias's message of "Tue, 28 Jan 2014 18:26:27 -0300") References: <1390944391-3892-1-git-send-email-gustavo@zacarias.com.ar> <1390944391-3892-2-git-send-email-gustavo@zacarias.com.ar> Message-ID: <87ob2ttpro.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Gustavo" == Gustavo Zacarias writes: > Adjust phpize and php-config to make them work for cross-compiled > external extensions. > While at it also fix dl* issues that prevent said extensions from > loading. > Signed-off-by: Gustavo Zacarias > +define PHP_EXTENSIONS_FIXUP > + $(SED) "/prefix/ s:/usr:$(STAGING_DIR)/usr:" \ > + $(STAGING_DIR)/usr/bin/phpize Can't we just add phpize to PHP_CONFIG_SCRIPTS? > + $(SED) "/extension_dir/ s:/usr:$(TARGET_DIR)/usr:" \ > + $(STAGING_DIR)/usr/bin/php-config Shouldn't this be s/TARGET_DIR/STAGING_DIR/? -- Bye, Peter Korsgaard