Skip to contentSkip to conversation

squid: Remove buildpaths from generated binaries

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

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 squid: Remove buildpaths from generated binaries

Compiler invocation and flags are added to SQUID_CONFIGURE_OPTIONS which is added via generated autoconf.h during configure step. Since OE encodes sysroot and buildpaths for cross compile, they end up in squid binary, this patch removes from workdir from them so avoid encoding build workspace path

---
 meta-networking/recipes-daemons/squid/squid_5.7.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-networking/recipes-daemons/squid/squid_5.7.bb +4 -0
index a208a2a88f..2a5de1872d 100644
@@ -69,6 +69,10 @@ do_configure:prepend() {
     export SYSROOT=$PKG_CONFIG_SYSROOT_DIR
 }
 
+do_configure:append() {
+   sed -i -e 's|${WORKDIR}||g' ${B}/include/autoconf.h
+}
+
 do_compile_ptest() {
     oe_runmake -C ${TESTDIR} buildtest-TESTS
 }
Signature · 1 line
2.40.1