commit | 319cfb5f30c2f5da0cdcd556574727ca347cb7de | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Fri Jun 22 09:11:33 2018 +0200 |
committer | GitHub <noreply@github.com> | Fri Jun 22 09:11:33 2018 +0200 |
tree | 968fa8b5992699b89cdacd814baefb1854914ba8 | |
parent | 7b383a57145046a6a6ad6cd26f3139163df07885 [diff] [blame] |
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825) Add -g to LDFLAGS when compiling with LTO to get debug symbols.
diff --git a/configure b/configure index 4a047e6..a75ca3a 100755 --- a/configure +++ b/configure
@@ -6481,6 +6481,13 @@ 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