Fix FTBFS due to missing link iberty library

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/2/head
François Andriot 9 years ago committed by Slávek Banko
parent a005a12fdc
commit 0e682a621b

@ -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 )

Loading…
Cancel
Save