BugLink: https://bugs.launchpad.net/bugs/1826410
In commit
14541b1e7e ("perf build: Don't unconditionally link the libbfd
feature test to -liberty and -lz") the enablement code changed radically
neutering our override. Adapt to that new form.
Fixes: 546d50456e ("UBUNTU: SAUCE: tools -- add ability to disable libbfd")
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
ifdef HAVE_NO_LIBBFD
feature-libbfd := 0
-endif
+ $(info libbfd overidden OFF)
+else
ifeq ($(feature-libbfd), 1)
EXTLIBS += -lbfd -lopcodes
msg := $(warning Old version of libbfd/binutils things like PE executable profiling will not be available);
endif
+endif
+
ifdef NO_DEMANGLE
CFLAGS += -DNO_DEMANGLE
else