hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/tools/perf/Makefile.config
....@@ -824,33 +824,36 @@
824824 endif
825825 endif
826826
827
-ifeq ($(feature-libbfd), 1)
828
- EXTLIBS += -lbfd -lopcodes
829
-else
830
- # we are on a system that requires -liberty and (maybe) -lz
831
- # to link against -lbfd; test each case individually here
832827
833
- # call all detections now so we get correct
834
- # status in VF output
835
- $(call feature_check,libbfd-liberty)
836
- $(call feature_check,libbfd-liberty-z)
837
-
838
- ifeq ($(feature-libbfd-liberty), 1)
839
- EXTLIBS += -lbfd -lopcodes -liberty
840
- FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -ldl
828
+ifndef NO_LIBBFD
829
+ ifeq ($(feature-libbfd), 1)
830
+ EXTLIBS += -lbfd -lopcodes
841831 else
842
- ifeq ($(feature-libbfd-liberty-z), 1)
843
- EXTLIBS += -lbfd -lopcodes -liberty -lz
844
- FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -lz -ldl
845
- endif
846
- endif
847
- $(call feature_check,disassembler-four-args)
848
-endif
832
+ # we are on a system that requires -liberty and (maybe) -lz
833
+ # to link against -lbfd; test each case individually here
849834
850
-ifeq ($(feature-libbfd-buildid), 1)
851
- CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT
852
-else
853
- msg := $(warning Old version of libbfd/binutils things like PE executable profiling will not be available);
835
+ # call all detections now so we get correct
836
+ # status in VF output
837
+ $(call feature_check,libbfd-liberty)
838
+ $(call feature_check,libbfd-liberty-z)
839
+
840
+ ifeq ($(feature-libbfd-liberty), 1)
841
+ EXTLIBS += -lbfd -lopcodes -liberty
842
+ FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -ldl
843
+ else
844
+ ifeq ($(feature-libbfd-liberty-z), 1)
845
+ EXTLIBS += -lbfd -lopcodes -liberty -lz
846
+ FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -lz -ldl
847
+ endif
848
+ endif
849
+ $(call feature_check,disassembler-four-args)
850
+ endif
851
+
852
+ ifeq ($(feature-libbfd-buildid), 1)
853
+ CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT
854
+ else
855
+ msg := $(warning Old version of libbfd/binutils things like PE executable profiling will not be available);
856
+ endif
854857 endif
855858
856859 ifdef NO_DEMANGLE