Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-06-19 21:07:06 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-06-19 21:07:06 +0300
commit25c72455660b6790614d85131208d375b2680300 (patch)
treed8af224c2bda8230a2487b848d60a46b1578600d /capture
parent5610bd0f8be3e9c1db3a10a86b2841133c87430a (diff)
Revert "Use pkg-config to link with TBB, but silence errors."
This reverts commit b4d6833231fea194f2d2912d29c8f2ca452f7178. pkg-config setup for TBB is debian-specific.
Diffstat (limited to 'capture')
-rw-r--r--capture/build/unix/build.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/capture/build/unix/build.mk b/capture/build/unix/build.mk
index 95e84f85..5378e008 100644
--- a/capture/build/unix/build.mk
+++ b/capture/build/unix/build.mk
@@ -1,8 +1,8 @@
CFLAGS +=
CXXFLAGS := $(CFLAGS) -std=gnu++17
DEFINES += -DTRACY_NO_STATISTICS
-INCLUDES := $(shell pkg-config --cflags capstone) $(shell pkg-config --silence-errors --cflags tbb)
-LIBS := $(shell pkg-config --libs capstone) $(shell pkg-config --silence-errors --libs tbb) -lpthread
+INCLUDES := $(shell pkg-config --cflags capstone)
+LIBS := $(shell pkg-config --libs capstone) -lpthread
PROJECT := capture
IMAGE := $(PROJECT)-$(BUILD)
@@ -14,6 +14,11 @@ BASE2 := $(shell egrep 'ClCompile.*c"' ../win32/$(PROJECT).vcxproj | sed -e 's/.
SRC := $(filter-out $(FILTER),$(BASE))
SRC2 := $(filter-out $(FILTER),$(BASE2))
+TBB := $(shell ld -ltbb -o /dev/null 2>/dev/null; echo $$?)
+ifeq ($(TBB),0)
+ LIBS += -ltbb
+endif
+
OBJDIRBASE := obj/$(BUILD)
OBJDIR := $(OBJDIRBASE)/o/o/o