Greetings, https://stackoverflow.com/a/49868387 https://sourceware.org/bugzilla/show_bug.cgi?id=11420 Configure uses "gcc -o conftest -g ... conftest.c -ldl -lncurses -lm -ldl ... -lpthread ... -lpython2.7" when deciding whether give libpython is usable. That of course is the wrong link order, and only works for shared libraries (mostly by accident), and only on some systems. Attached patch fixes this. I am not sure about this part of the patch: - LIBS="$LIBS $new_LIBS" + LIBS="$new_LIBS $LIBS" I think it's always better to prepend new libraries. Thanks, 2018-04-17 Paul Pluzhnikov PR gdb/11420 * gdb/configure.ac: Prepend libpython. * gdb/python/python-config.py: Likewise. * gdb/configure: Regenerate. -- Paul Pluzhnikov