Skip to content
Snippets Groups Projects
Commit 7babdfc2 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Don't enable BFD if libiberty is not installed

parent 2c4f81a1
No related branches found
No related tags found
No related merge requests found
......@@ -202,10 +202,11 @@ if (ENABLE_BACKTRACE)
endif()
# Use GNU bfd if present.
check_library_exists (bfd bfd_init "" HAVE_BFD_LIB)
check_library_exists (iberty cplus_demangle "" HAVE_IBERTY_LIB)
set(CMAKE_REQUIRED_DEFINITIONS -DPACKAGE=${PACKAGE} -DPACKAGE_VERSION=${PACKAGE_VERSION})
check_include_file(bfd.h HAVE_BFD_H)
set(CMAKE_REQUIRED_DEFINITIONS)
if (HAVE_BFD_LIB AND HAVE_BFD_H)
if (HAVE_BFD_LIB AND HAVE_BFD_H AND HAVE_IBERTY_LIB)
set (HAVE_BFD True)
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment