@@ -182,13 +182,19 @@ endif
182
182
FEATURE_CHECK_CFLAGS-libzstd := $(LIBZSTD_CFLAGS)
183
183
FEATURE_CHECK_LDFLAGS-libzstd := $(LIBZSTD_LDFLAGS)
184
184
185
+ ifneq ($(NO_LIBTRACEEVENT),1)
186
+ ifeq ($(call get-executable,$(PKG_CONFIG)),)
187
+ $(error Error: $(PKG_CONFIG) needed by libtraceevent is missing on this system, please install it)
188
+ endif
189
+ endif
190
+
185
191
# for linking with debug library, run like:
186
192
# make DEBUG=1 PKG_CONFIG_PATH=/opt/libtraceevent/(lib|lib64)/pkgconfig
187
- FEATURE_CHECK_CFLAGS-libtraceevent := $(shell $(PKG_CONFIG) --cflags libtraceevent)
188
- FEATURE_CHECK_LDFLAGS-libtraceevent := $(shell $(PKG_CONFIG) --libs libtraceevent)
193
+ FEATURE_CHECK_CFLAGS-libtraceevent := $(shell $(PKG_CONFIG) --cflags libtraceevent 2>/dev/null )
194
+ FEATURE_CHECK_LDFLAGS-libtraceevent := $(shell $(PKG_CONFIG) --libs libtraceevent 2>/dev/null )
189
195
190
- FEATURE_CHECK_CFLAGS-libtracefs := $(shell $(PKG_CONFIG) --cflags libtracefs)
191
- FEATURE_CHECK_LDFLAGS-libtracefs := $(shell $(PKG_CONFIG) --libs libtracefs)
196
+ FEATURE_CHECK_CFLAGS-libtracefs := $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null )
197
+ FEATURE_CHECK_LDFLAGS-libtracefs := $(shell $(PKG_CONFIG) --libs libtracefs 2>/dev/null )
192
198
193
199
FEATURE_CHECK_CFLAGS-bpf = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(SRCARCH)/include/uapi -I$(srctree)/tools/include/uapi
194
200
# include ARCH specific config
@@ -208,12 +214,6 @@ ifeq ($(call get-executable,$(BISON)),)
208
214
$(error Error: $(BISON) is missing on this system, please install it)
209
215
endif
210
216
211
- ifneq ($(NO_LIBTRACEEVENT),1)
212
- ifeq ($(call get-executable,$(PKG_CONFIG)),)
213
- dummy := $(error Error: $(PKG_CONFIG) needed by libtraceevent is missing on this system, please install it)
214
- endif
215
- endif
216
-
217
217
ifneq ($(OUTPUT),)
218
218
ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \>\= 371), 1)
219
219
BISON_FILE_PREFIX_MAP := --file-prefix-map=$(OUTPUT)=
0 commit comments