This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 <ppluzhnikov@google.com> PR gdb/11420 * gdb/configure.ac: Prepend libpython. * gdb/python/python-config.py: Likewise. * gdb/configure: Regenerate. -- Paul Pluzhnikov
Attachment:
gdb-bz11420-20180417.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |