This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/41529] [4.5 Regression] LTO configuration should detect if the target is ELF
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2009 09:59:08 -0000
- Subject: [Bug bootstrap/41529] [4.5 Regression] LTO configuration should detect if the target is ELF
- References: <bug-41529-91@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from bonzini at gnu dot org 2009-10-24 09:59 -------
I agree with Andrew, but as a middle way you could put something like this in
config/elf.m4:
dnl usage: ACX_ELF_TARGET_IFELSE([if-elf], [if-not-elf])
AC_DEFUN([ACX_ELF_TARGET_IFELSE]), [
AC_REQUIRE([AC_CANONICAL_TARGET])
target_elf=no
case $target in
...) target_elf=yes;;
esac
AS_IF([test $target_elf = yes], [$1], [$2])
])
and use the macro in the toplevel.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41529