On Debian Stretch/Ubuntu 14.04, the libbfd provided by libbfd-dev or binutils-dev packages does not like being linked statically. Add a dynamic linkage test when detecting libbfd. Signed-off-by: Julien Thierry <julien.thierry@xxxxxxx> --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d535204..c4faff6 100644 --- a/Makefile +++ b/Makefile @@ -209,7 +209,13 @@ ifeq ($(call try-build,$(SOURCE_BFD),$(CFLAGS),$(LDFLAGS) -lbfd -static),y) OBJS_STATOPT += symbol.o LIBS_STATOPT += -lbfd else - NOTFOUND += bfd + ifeq ($(call try-build,$(SOURCE_BFD),$(CFLAGS),$(LDFLAGS) -lbfd),y) + CFLAGS_DYNOPT += -DCONFIG_HAS_BFD + OBJS_DYNOPT += symbol.o + LIBS_DYNOPT += -lbfd + else + NOTFOUND += bfd + endif endif ifeq (y,$(ARCH_HAS_FRAMEBUFFER)) -- 1.9.1 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm