From 19439d47cb44d4e0762582391f847de1072b6b57 Mon Sep 17 00:00:00 2001 From: pcpa Date: Thu, 14 Sep 2017 13:27:09 -0400 Subject: [PATCH] Correct binutils version detection --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index adbc45d62..e3282a9ea 100644 --- a/configure.ac +++ b/configure.ac @@ -94,6 +94,7 @@ AM_CONDITIONAL(with_disassembler, [test "x$DISASSEMBLER" != "xno"]) if test "x$DISASSEMBLER" != "xno"; then LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DDISASSEMBLER=1" save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE" AC_COMPILE_IFELSE([AC_LANG_SOURCE( #include #include @@ -101,12 +102,11 @@ if test "x$DISASSEMBLER" != "xno"; then int main(int argc, char *argv[]) { disassembler_ftype print; - bdf *abfd; + bfd *abfd; print = disassembler(abfd); return 0; } )], [ac_cv_test_new_disassembler=no],,) - CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE" CFLAGS="$save_CFLAGS" if test "x$ac_cv_test_new_disassembler" != "xno"; then LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DBINUTILS_2_29=1"