Message319614
LTO may break the debug symbols and make GDB unusable.
There is an option, that fixes the issue: to use a -g switch in link flags.
Note that this slows loading of the debug symbols significantly.
I suggest these options as possible approaches:
1) make the configure script include -g in LDFLAGS when --enable-optimizations and --with-lto are used
2) same as 1), but only when --with-pydebug is also used.
3) document this problem and make the user aware that this possible fix (-g in link flags) exists |
|
Date |
User |
Action |
Args |
2018-06-15 13:12:37 | Dormouse759 | set | recipients:
+ Dormouse759, vstinner, jkloth, mcepl, koobs, cstratak, mi |
2018-06-15 13:12:37 | Dormouse759 | set | messageid: <1529068357.48.0.947875510639.issue30345@psf.upfronthosting.co.za> |
2018-06-15 13:12:37 | Dormouse759 | link | issue30345 messages |
2018-06-15 13:12:37 | Dormouse759 | create | |
|