From 40ea76aed7dcf2d50d25b1ffa173746d2d17492f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 27 Jan 2020 01:37:31 +0100 Subject: Fix FTBFS with binutils 2.34. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 0e3a275c7d9b33dd6d98a44c82a8e3ed37ec97f0) --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index aa3be15..95c8119 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ cmake_minimum_required( VERSION 2.6 ) project( libr ) set( PACKAGE libr ) -set( VERSION R14.0.7 ) +set( VERSION R14.0.8 ) +set( PACKAGE_VERSION 0.6.0 ) ##### include essential cmake modules ########### @@ -25,6 +26,7 @@ include( FindPkgConfig ) include( CheckIncludeFile ) include( CheckFunctionExists ) include( CheckLibraryExists ) +include( CheckSymbolExists ) ##### include our cmake modules ################# @@ -53,6 +55,9 @@ if( WITH_BACKEND_LIBBFD ) if( NOT HAVE_BFD_H ) tde_message_fatal( "Could not find libbfd header file (bfd.h)!\nThis file is usually included in the package binutils-dev." ) endif( NOT HAVE_BFD_H ) + tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "bfd" ) + check_symbol_exists( bfd_asymbol_section bfd.h HAVE_BFD_2_34 ) + tde_restore( CMAKE_REQUIRED_LIBRARIES ) set( BACKEND_LIBRARIES "-lbfd" ) set( LIBR_BACKEND "bfd" ) set( BACKEND_NAME "libbfd" ) @@ -124,3 +129,7 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libr.pc tde_auto_add_subdirectories() + +##### write configure files ##################### + +configure_file( src/config.h.cmake config.h @ONLY ) -- cgit v1.2.1