diff options
author | 2019-05-29 11:31:16 +0100 | |
---|---|---|
committer | 2019-05-29 11:32:34 +0100 | |
commit | 90bd54236cb8b1c31c3662977159be971044c20d (patch) | |
tree | ae40336bf812074b3c26b51190e33a59946ef2e8 /configure | |
parent | Fix libctf build on non-ELF targets. (diff) | |
download | binutils-gdb-90bd54236cb8b1c31c3662977159be971044c20d.tar.gz binutils-gdb-90bd54236cb8b1c31c3662977159be971044c20d.tar.bz2 binutils-gdb-90bd54236cb8b1c31c3662977159be971044c20d.zip |
Do not build libctf for targets that do not use the ELF file format.
top * configure.ac (noconfigdirs): Add libctf if the target does not use
the ELF file format.
* configure: Regenerate.
binutils* configure.ac (LIBCTF): Export. Set to empty for non-ELF based
targets.
(HAVE_LIBCTF): Define if libctf support is available.
* Makefile.am (LIBCTF): Set value to @LIBCTF@.
* objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
defined.
* readelf.c: Likewise.
* configure: Regenerate.
* Makefile.in: Regenerate.
* config.in: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure index 3e95ce50ffb..86dc0407fa0 100755 --- a/configure +++ b/configure @@ -3604,6 +3604,22 @@ case "${target}" in ;; esac +# Targets that do not use the ELF file format cannot support libctf. +case "${target}" in + *-*-pe | *-*-*vms* | *-*-darwin | *-*-*coff* | *-*-wince | *-*-mingw*) + noconfigdirs="$noconfigdirs libctf" + ;; + *-*-aout | *-*-osf* | *-*-go32 | *-*-macos* | *-*-rhapsody*) + noconfigdirs="$noconfigdirs libctf" + ;; + *-*-netbsdpe | *-*-cygwin* | *-*-pep | *-*-msdos | *-*-winnt) + noconfigdirs="$noconfigdirs libctf" + ;; + ns32k-*-* | pdp11-*-* | *-*-aix* | *-*-netbsdaout) + noconfigdirs="$noconfigdirs libctf" + ;; +esac + case "${target}" in *-*-chorusos) ;; |