bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
This commit is contained in:
parent
7b383a5714
commit
319cfb5f30
|
@ -0,0 +1 @@
|
|||
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
|
|
@ -6481,6 +6481,13 @@ if test "$Py_LTO" = 'true' ; then
|
|||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "$ac_cv_prog_cc_g" = "yes"
|
||||
then
|
||||
# bpo-30345: Add -g to LDFLAGS when compiling with LTO
|
||||
# to get debug symbols.
|
||||
LTOFLAGS="$LTOFLAGS -g"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -1455,6 +1455,13 @@ if test "$Py_LTO" = 'true' ; then
|
|||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "$ac_cv_prog_cc_g" = "yes"
|
||||
then
|
||||
# bpo-30345: Add -g to LDFLAGS when compiling with LTO
|
||||
# to get debug symbols.
|
||||
LTOFLAGS="$LTOFLAGS -g"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue