Skip to contentSkip to conversation

gdb-cross: use PACKAGECONFIG for python and readline

PATCH New Jonathan Liu 1 participant 1 message Mar 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdb-cross: use PACKAGECONFIG for python and readline

---
 meta/recipes-devtools/gdb/gdb-cross.inc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta/recipes-devtools/gdb/gdb-cross.inc +5 -2
index 6e44778..2468d23 100644
@@ -1,10 +1,13 @@
 require gdb-common.inc
 
-DEPENDS = "expat-native ncurses-native readline-native python-native"
+DEPENDS = "expat-native ncurses-native"
 
 inherit pythonnative
 
-EXTRA_OECONF += "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python"
+# Overrides PACKAGECONFIG variables in gdb-common.inc
+PACKAGECONFIG ??= "python readline"
+PACKAGECONFIG[python] = "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python,--without-python,python-native"
+PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
 
 do_compile_prepend() {
     export BUILD_SYS="${BUILD_SYS}"
Signature · 1 line
2.7.4