kumquat-buildroot/package/hawktracer/hawktracer.mk
Fabrice Fontaine d312d0ff9d package/hawktracer: fix build without threads
Fix the following build failure without threads raised since the
addition of the package in commit
94d8764ef9:

/home/giuliobenetti/autobuild/run/instance-2/output-1/build/hawktracer-e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8/lib/platform/linux/cpu_usage.c:5:10: fatal error: pthread.h: No such file or directory
    5 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/7edc29e21e441e66ad7c4df1673e506950930913

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-08-14 12:05:25 +02:00

49 lines
1.2 KiB
Makefile

################################################################################
#
# hawktracer
#
################################################################################
HAWKTRACER_VERSION = e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8
HAWKTRACER_SITE = $(call github,amzn,hawktracer,$(HAWKTRACER_VERSION))
HAWKTRACER_LICENSE = MIT
HAWKTRACER_LICENSE_FILES = LICENSE
HAWKTRACER_INSTALL_STAGING = YES
HAWKTRACER_CONF_OPTS = \
-DENABLE_ASAN=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_CODE_COVERAGE=OFF \
-DENABLE_BENCHMARKS=OFF \
-DENABLE_DOC=OFF \
-DENABLE_PYTHON_BINDINGS=OFF \
-DENABLE_MAINTAINER_MODE=OFF \
-DENABLE_RELEASE_MODE=OFF \
-DENABLE_CLIENT=OFF \
-DENABLE_EXAMPLES=OFF
ifeq ($(BR2_STATIC_LIBS),y)
HAWKTRACER_CONF_OPTS += -DBUILD_STATIC_LIB=ON
else
HAWKTRACER_CONF_OPTS += -DBUILD_STATIC_LIB=OFF
endif
ifeq ($(BR2_PACKAGE_HAWKTRACER_TCP_LISTENER),y)
HAWKTRACER_CONF_OPTS += -DENABLE_TCP_LISTENER=ON
else
HAWKTRACER_CONF_OPTS += -DENABLE_TCP_LISTENER=OFF
endif
# Enable threads support if supported by toolchain
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
HAWKTRACER_CONF_OPTS += \
-DENABLE_CPU_USAGE_FEATURE=ON \
-DENABLE_THREADS=ON
else
HAWKTRACER_CONF_OPTS += \
-DENABLE_CPU_USAGE_FEATURE=OFF \
-DENABLE_THREADS=OFF
endif
$(eval $(cmake-package))