diff options
Diffstat (limited to 'lto-plugin/configure.ac')
-rw-r--r-- | lto-plugin/configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lto-plugin/configure.ac b/lto-plugin/configure.ac index e89a982b971..c43b26434e8 100644 --- a/lto-plugin/configure.ac +++ b/lto-plugin/configure.ac @@ -9,6 +9,14 @@ AC_ARG_VAR(LIBELFLIBS,[How to link libelf]) AC_ARG_VAR(LIBELFINC,[How to find libelf include files]) AM_PROG_LIBTOOL AC_SUBST(target_noncanonical) +. ${srcdir}/../gcc/config.gcc +case ${lto_binary_reader} in + *coff*) LTO_FORMAT=coff ;; + *elf*) LTO_FORMAT=elf ;; + *) AC_MSG_ERROR([LTO plugin is not supported on this target.]) ;; +esac + +AC_SUBST(LTO_FORMAT) AC_TYPE_UINT64_T AC_CONFIG_FILES(Makefile) AC_OUTPUT |