From b6cbbae3a5701cf4153b50ed31e2438e916f9678 Mon Sep 17 00:00:00 2001 From: oliverhaag Date: Wed, 13 Mar 2013 19:33:27 +0000 Subject: [PATCH] Add libbfd dependencies --- openhantek-extractfw/ChangeLog | 9 +++++++++ openhantek-extractfw/Makefile.am | 2 +- openhantek-extractfw/configure.in | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/openhantek-extractfw/ChangeLog b/openhantek-extractfw/ChangeLog index cc52458..3def593 100644 --- a/openhantek-extractfw/ChangeLog +++ b/openhantek-extractfw/ChangeLog @@ -32,3 +32,12 @@ * Version 0.7.0: * Renamed this extraction tool to openhantek-extractfw * Added fwget.sh for automatic driver download and firmware extraction + +2011-11-20 Oliver Haag +* Updated deprecated used rules + +2012-11-25 Oliver Haag +* Added additional DSO-2090 product ID + +2013-03-13 Oliver Haag +* Link libbfd dependencies explicitly (Required by recent gcc/libbfd) diff --git a/openhantek-extractfw/Makefile.am b/openhantek-extractfw/Makefile.am index 06d3904..dce64ed 100644 --- a/openhantek-extractfw/Makefile.am +++ b/openhantek-extractfw/Makefile.am @@ -1,6 +1,6 @@ METASOURCES = AUTO bin_PROGRAMS = openhantek-extractfw openhantek_extractfw_LDFLAGS = $(all_libraries) -openhantek_extractfw_LDADD = -lbfd +openhantek_extractfw_LDADD = -lbfd -liberty -lz -ldl openhantek_extractfw_SOURCES = extractfw.c noinst_DATA = 90-hantek.rules diff --git a/openhantek-extractfw/configure.in b/openhantek-extractfw/configure.in index 38fe7f2..df764f2 100644 --- a/openhantek-extractfw/configure.in +++ b/openhantek-extractfw/configure.in @@ -13,7 +13,10 @@ AM_INIT_AUTOMAKE AC_PROG_CC # Checks for libraries. -AC_CHECK_LIB([bfd], [main], [], AC_MSG_ERROR([The bfd library is missing])) +AC_CHECK_LIB([dl], [dlopen], [], AC_MSG_ERROR([libdl is missing])) +AC_CHECK_LIB([z], [deflate], [], AC_MSG_ERROR([libz is missing])) +AC_CHECK_LIB([iberty], [objalloc_create], [], AC_MSG_ERROR([libiberty is missing])) +AC_CHECK_LIB([bfd], [bfd_openr], [], AC_MSG_ERROR([libbfd is missing])) # Checks for header files. AC_CHECK_HEADERS([malloc.h string.h]) -- libgit2 0.21.4