|
|
|
@ -51,12 +51,14 @@ option( WITH_BACKEND_READONLY "Build with read-only backend" "OFF" )
|
|
|
|
|
#### configure checks ###########################
|
|
|
|
|
|
|
|
|
|
if( WITH_BACKEND_LIBBFD )
|
|
|
|
|
tde_save_and_set( CMAKE_REQUIRED_DEFINITIONS "-DPACKAGE" "-DPACKAGE_VERSION" )
|
|
|
|
|
check_include_file( bfd.h HAVE_BFD_H )
|
|
|
|
|
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_DEFINITIONS )
|
|
|
|
|
tde_restore( CMAKE_REQUIRED_LIBRARIES )
|
|
|
|
|
set( BACKEND_LIBRARIES "-lbfd" )
|
|
|
|
|
set( LIBR_BACKEND "bfd" )
|
|
|
|
|