Skip to contentSkip to conversation

mozjs: Avoid use of X11 from host when X11 is disabled

PATCH New Khem Raj 1 participant 1 message Jan 15, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mozjs: Avoid use of X11 from host when X11 is disabled

From: Otavio Salvador <[email protected]>

The mozjs build system makes use of host headers and libraries if not passed an invalid path for --x-includes and --x-libraries. This fixes host contamination while building in a development host.

---
 meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb +1 -1
index 0dfe2f848..440a25b74 100644
@@ -49,7 +49,7 @@ EXTRA_OECONF = " \
 "
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
-PACKAGECONFIG[x11] = "--x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},,virtual/libx11"
+PACKAGECONFIG[x11] = "--x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--x-includes=no --x-libraries=no,virtual/libx11"
 
 EXTRA_OEMAKE_task-compile += "OS_LDFLAGS='-Wl,-latomic ${LDFLAGS}'"
 EXTRA_OEMAKE_task-install += "STATIC_LIBRARY_NAME=js_static"
Signature · 1 line
2.20.1