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 | |
parent | 04176b913cb2aa24244d340afc3c793fff5c0c25 (diff) | |
download | gcc-7413962d04a4f1864db684a2d9a49d043322f299.zip gcc-7413962d04a4f1864db684a2d9a49d043322f299.tar.gz gcc-7413962d04a4f1864db684a2d9a49d043322f299.tar.bz2 |
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')
-rwxr-xr-x | configure | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -5889,6 +5889,35 @@ else fi + + + +target_elf=no +case $target in + *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ + *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \ + alpha*-dec-osf* | *-interix*) + target_elf=no + ;; + *) + target_elf=yes + ;; +esac + +if test $target_elf = yes; then : + +else + if test x"$default_enable_lto" = x"yes" ; then + enable_lto=no +else + if test x"$enable_lto" = x"yes"; then + as_fn_error "LTO support requires an ELF target." "$LINENO" 5 + fi +fi +default_enable_lto=no +fi + + if test x"$enable_lto" = x"yes" ; then # Make sure that libelf.h and gelf.h are available. |