Commit 319cfb5f authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)

Add -g to LDFLAGS when compiling with LTO to get debug symbols.
parent 7b383a57
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment