Commit dc4291ba authored by Julien Thierry's avatar Julien Thierry Committed by Will Deacon
Browse files

Makefile: Try dynamic linkage for bfd



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: default avatarJulien Thierry <julien.thierry@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 58ba12ba
......@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment