diff options
author | Richard Guenther <rguenther@suse.de> | 2010-01-02 14:13:37 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-01-02 14:13:37 +0000 |
commit | 7413962d04a4f1864db684a2d9a49d043322f299 (patch) | |
tree | d3cf010a771c7989f27711166a6e0dcd842e9115 /configure.ac | |
parent | 04176b913cb2aa24244d340afc3c793fff5c0c25 (diff) | |
download | gcc-7413962d04a4f1864db684a2d9a49d043322f299.tar.gz |
re PR bootstrap/41529 (LTO configuration should detect if the target is ELF)
2010-01-02 Richard Guenther <rguenther@suse.de>
PR lto/41529
* configure.ac: Include config/elf.m4. Disable LTO if not
builting for an elf target.
* configure: Regenerate.
config/
* elf.m4: New file.
From-SVN: r155565
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index dbc1565ec2a..9a7123227cd 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,7 @@ m4_include(config/acx.m4) m4_include(config/override.m4) m4_include(config/proginstall.m4) +m4_include(config/elf.m4) AC_INIT(move-if-change) AC_PREREQ(2.64) @@ -1601,6 +1602,16 @@ AC_ARG_ENABLE(lto, enable_lto=$enableval, enable_lto=yes; default_enable_lto=yes) +ACX_ELF_TARGET_IFELSE([], +if test x"$default_enable_lto" = x"yes" ; then + enable_lto=no +else + if test x"$enable_lto" = x"yes"; then + AC_MSG_ERROR([LTO support requires an ELF target.]) + fi +fi +default_enable_lto=no) + if test x"$enable_lto" = x"yes" ; then # Make sure that libelf.h and gelf.h are available. AC_ARG_WITH(libelf, [ --with-libelf=PATH Specify prefix directory for the installed libelf package |