summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2016-04-17 20:26:27 +0200
committerSlávek Banko <[email protected]>2016-04-17 20:26:27 +0200
commit0e682a621b586826030800a6a0cc55a665b7c0ca (patch)
tree8155713882f4981fa4d3f03f2b360dd42a55ed30
parenta005a12fdc5faa565a2d2acccf48f75c0ecc0ca4 (diff)
downloadlibr-0e682a621b586826030800a6a0cc55a665b7c0ca.tar.gz
libr-0e682a621b586826030800a6a0cc55a665b7c0ca.zip
Fix FTBFS due to missing link iberty library
Signed-off-by: François Andriot <[email protected]>
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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 )