diff mbox series

[meta-oe,kirkstone,1/1] php: Remove buildpaths from scripts and generated headers

Message ID 20250102100655.3794330-1-haixiao.yan.cn@eng.windriver.com
State New
Headers show
Series [meta-oe,kirkstone,1/1] php: Remove buildpaths from scripts and generated headers | expand

Commit Message

haixiao.yan.cn@eng.windriver.com Jan. 2, 2025, 10:06 a.m. UTC
From: Khem Raj <raj.khem@gmail.com>

(master rev: 439239ca9c543b0913de054f01453796e373ac00)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
---
 meta-oe/recipes-devtools/php/php_8.1.30.bb | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/php/php_8.1.30.bb b/meta-oe/recipes-devtools/php/php_8.1.30.bb
index 2b999df49397..19d7a84b9b11 100644
--- a/meta-oe/recipes-devtools/php/php_8.1.30.bb
+++ b/meta-oe/recipes-devtools/php/php_8.1.30.bb
@@ -142,6 +142,13 @@  do_configure:append() {
     # No, libtool, we really don't want rpath set...
     sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
     sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+    sed -i -e's@${RECIPE_SYSROOT}@@g' \
+        -e's@-ffile-prefix-map=[^ ]*[ ]*@@g' \
+        -e's@-fdebug-prefix-map=[^ ]*[ ]*@@g' \
+        -e's@-ffile-prefix-map=[^ ]*[ ]*@@g' \
+        -e's@-fmacro-prefix-map=[^ ]*[ ]*@@g' \
+        ${B}/main/build-defs.h \
+        ${B}/scripts/php-config
 }
 
 do_install:append:class-native() {