6 Configuring annobin and annocheck

When building annobin and annocheck from the sources there are a few configure options available to customise the build:

--with-debuginfod

debuginfod is a web service that indexes ELF/DWARF debugging resources by build-id and serves them over HTTP.

By default the annocheck program will be built and linked with the debuginfod client library libdebuginfod if it is present at build time. The --with-debuginfod configure option can be used to force the linking against the library even if the run-time debuginfod program cannot be found. Alternatively the --without debuginfod can be used to force annobin to be built without libdebuginfod support, even if it is present on the build system.

debuginfod is packaged with elfutils, starting with version 0.178. You can get the latest version from ’https://sourceware.org/elfutils/’.

--with-gmp=PATH

The --with-gmp=PATH option can be used to specify an alternative path to the gmp libraries, if necessary.

--without-libelf

The annocheck program uses libelf to read ELF binaries. By default the configure system will detect if the library is installed and if not, then it will disable the building of annocheck and the running of the tests. (Since they use annocheck). This behaviour can be overridden by the --without-libelf option which forces the build to assume that libelf is absent even if it would normally be detected.

--without-tests

Disable running the testsuite after building the various binaries.

--without-clang-plugin

Disable the building of the annobin plugin for the Clang compiler.

--without-llvm-plugin

Disable the building of the annobin plugin for the LLVM compiler backend. The LLVM plugin is separate from the Clang plugin and can be used with any language that uses LLVM as a backend compiler.

--without-gcc-plugin

Do not build the gcc plugin.

--without-docs

Do not build the documentation.

--without-annocheck

Do not build the annocheck tool.

--enable-maintainer-mode

This enables the regeneration of the Makefile and configure files when building the annobin sources.