diff options
author | Will Deacon <will.deacon@arm.com> | 2012-11-12 11:57:17 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:53 +0100 |
commit | 618b5f99499e124a62d6c698d4d4140ad5ac88c5 (patch) | |
tree | f7f4690e0c6b2a0b05d58fa07467716ee002041d /Makefile | |
parent | 2718290f53520cb78b45461337efc5b02d98485d (diff) | |
download | kvmtool-618b5f99499e124a62d6c698d4d4140ad5ac88c5.tar.gz |
kvm tools: avoid linking dynamically against libbfd
Linking dynamically against libbfd results in a non-portable application
binary and is generally frowned upon by distributions: Debian forbids it
explicitly and on Gentoo, it results in a failure at run-time:
./lkvm: error while loading shared libraries: libbfd-2.22.so: cannot
open shared object file: No such file or directory
Avoid these problems by linking statically instead.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -171,11 +171,6 @@ endif # both and only build those that link! FLAGS_BFD := $(CFLAGS) -lbfd -ifeq ($(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD)),y) - CFLAGS_DYNOPT += -DCONFIG_HAS_BFD - OBJS_DYNOPT += symbol.o - LIBS_DYNOPT += -lbfd -endif ifeq ($(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD) -static),y) CFLAGS_STATOPT += -DCONFIG_HAS_BFD OBJS_STATOPT += symbol.o |