aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-27 16:16:17 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-07-27 16:20:49 -0700
commit6f8ea6c424a3ceda065c39903065cfb251add37d (patch)
tree1473230a3f4cceeddbf6dc3643ee72eb286e932f /configure
parent13e1dec8960122ec0329f74e5915503e14db5ea2 (diff)
downloadgdb-6f8ea6c424a3ceda065c39903065cfb251add37d.zip
gdb-6f8ea6c424a3ceda065c39903065cfb251add37d.tar.gz
gdb-6f8ea6c424a3ceda065c39903065cfb251add37d.tar.bz2
Set NOPIE_CFLAGS and NOPIE_LDFLAGS
GCC 6 can be configured to generate PIE by default. But some linker size tests expect non-PIE. This patch defines NOPIE_CFLAGS to "-fno-PIE" and NOPIE_LDFLAGS to "-no-pie" if target compiler supports them. Add $NOPIE_CFLAGS and $NOPIE_LDFLAGS to linker size tests if needed. * config/default.exp (NOPIE_CFLAGS): New. (NOPIE_LDFLAGS): Likewise. * ld-size/size.exp (run_cc_link_tests): Add $NOPIE_CFLAGS and $NOPIE_LDFLAGS if needed. (run_ld_link_exec_tests): Add $NOPIE_CFLAGS if needed.
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions