From 0e682a621b586826030800a6a0cc55a665b7c0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 17 Apr 2016 20:26:27 +0200 Subject: Fix FTBFS due to missing link iberty library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c14b516..bb4037a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,11 @@ if( WITH_BACKEND_LIBBFD ) set( LIBR_BACKEND "bfd" ) set( BACKEND_NAME "libbfd" ) + check_include_file( libiberty.h HAVE_LIBIBERTY_H ) + if( HAVE_LIBIBERTY_H ) + list( APPEND BACKEND_LIBRARIES "-liberty" ) + endif( HAVE_LIBIBERTY_H ) + elseif( WITH_BACKEND_LIBELF ) # Is libelf 0.8.2 safe enough? testing is currently on 0.8.6 pkg_search_module( BACKEND libelf>=0.8.2 ) -- cgit v1.2.1