|
@@ -688,18 +688,20 @@ endif
|
|
|
|
|
|
|
|
ifeq ($(feature-libbfd), 1)
|
|
ifeq ($(feature-libbfd), 1)
|
|
|
EXTLIBS += -lbfd
|
|
EXTLIBS += -lbfd
|
|
|
|
|
+else
|
|
|
|
|
+ # we are on a system that requires -liberty and (maybe) -lz
|
|
|
|
|
+ # to link against -lbfd; test each case individually here
|
|
|
|
|
|
|
|
# call all detections now so we get correct
|
|
# call all detections now so we get correct
|
|
|
# status in VF output
|
|
# status in VF output
|
|
|
- $(call feature_check,liberty)
|
|
|
|
|
- $(call feature_check,liberty-z)
|
|
|
|
|
- $(call feature_check,cplus-demangle)
|
|
|
|
|
|
|
+ $(call feature_check,libbfd-liberty)
|
|
|
|
|
+ $(call feature_check,libbfd-liberty-z)
|
|
|
|
|
|
|
|
- ifeq ($(feature-liberty), 1)
|
|
|
|
|
- EXTLIBS += -liberty
|
|
|
|
|
|
|
+ ifeq ($(feature-libbfd-liberty), 1)
|
|
|
|
|
+ EXTLIBS += -lbfd -liberty
|
|
|
else
|
|
else
|
|
|
- ifeq ($(feature-liberty-z), 1)
|
|
|
|
|
- EXTLIBS += -liberty -lz
|
|
|
|
|
|
|
+ ifeq ($(feature-libbfd-liberty-z), 1)
|
|
|
|
|
+ EXTLIBS += -lbfd -liberty -lz
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
@@ -709,24 +711,24 @@ ifdef NO_DEMANGLE
|
|
|
else
|
|
else
|
|
|
ifdef HAVE_CPLUS_DEMANGLE_SUPPORT
|
|
ifdef HAVE_CPLUS_DEMANGLE_SUPPORT
|
|
|
EXTLIBS += -liberty
|
|
EXTLIBS += -liberty
|
|
|
- CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
|
|
|
|
|
else
|
|
else
|
|
|
- ifneq ($(feature-libbfd), 1)
|
|
|
|
|
- ifneq ($(feature-liberty), 1)
|
|
|
|
|
- ifneq ($(feature-liberty-z), 1)
|
|
|
|
|
- # we dont have neither HAVE_CPLUS_DEMANGLE_SUPPORT
|
|
|
|
|
- # or any of 'bfd iberty z' trinity
|
|
|
|
|
- ifeq ($(feature-cplus-demangle), 1)
|
|
|
|
|
- EXTLIBS += -liberty
|
|
|
|
|
- CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
|
|
|
|
|
- else
|
|
|
|
|
- msg := $(warning No bfd.h/libbfd found, please install binutils-dev[el]/zlib-static/libiberty-dev to gain symbol demangling)
|
|
|
|
|
- CFLAGS += -DNO_DEMANGLE
|
|
|
|
|
- endif
|
|
|
|
|
- endif
|
|
|
|
|
|
|
+ ifeq ($(filter -liberty,$(EXTLIBS)),)
|
|
|
|
|
+ $(call feature_check,cplus-demangle)
|
|
|
|
|
+
|
|
|
|
|
+ # we dont have neither HAVE_CPLUS_DEMANGLE_SUPPORT
|
|
|
|
|
+ # or any of 'bfd iberty z' trinity
|
|
|
|
|
+ ifeq ($(feature-cplus-demangle), 1)
|
|
|
|
|
+ EXTLIBS += -liberty
|
|
|
|
|
+ else
|
|
|
|
|
+ msg := $(warning No bfd.h/libbfd found, please install binutils-dev[el]/zlib-static/libiberty-dev to gain symbol demangling)
|
|
|
|
|
+ CFLAGS += -DNO_DEMANGLE
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
|
|
|
+
|
|
|
|
|
+ ifneq ($(filter -liberty,$(EXTLIBS)),)
|
|
|
|
|
+ CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
|
|
|
|
|
+ endif
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter -lbfd,$(EXTLIBS)),)
|
|
ifneq ($(filter -lbfd,$(EXTLIBS)),)
|