Skip to contentSkip to conversation

php: Remove buildpaths from scripts and generated headers

PATCH New Khem Raj 1 participant 1 message May 16, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 php: Remove buildpaths from scripts and generated headers

---
 meta-oe/recipes-devtools/php/php_8.2.6.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta-oe/recipes-devtools/php/php_8.2.6.bb +7 -0
index 833a70fac3..7e2ea78a15 100644
@@ -143,6 +143,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() {
Signature · 1 line
2.40.1