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
path: root/test
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-04-30 20:02:06 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-04-30 20:02:06 +0300
commitd80ad500ee1ca803000eabb304abc29c0ad03707 (patch)
tree8da097c413a0ed03e918dc360682b083aa63ea9a /test
parent254e87cbac955daf91aad0ea868b9788318239a5 (diff)
Do not pass linker flags during compilation.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index b15c22be..5f92b763 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,10 +1,11 @@
OPTFLAGS := -g3 -fmerge-constants
TRACYFLAGS :=
-CFLAGS := $(OPTFLAGS) -Wall -DTRACY_ENABLE $(TRACYFLAGS) -rdynamic
+CFLAGS := $(OPTFLAGS) -Wall -DTRACY_ENABLE $(TRACYFLAGS)
CXXFLAGS := $(CFLAGS) -std=gnu++11
DEFINES +=
INCLUDES :=
LIBS := -lpthread -ldl
+LDFLAGS := -rdynamic
IMAGE := tracy_test
SRC := \
@@ -30,7 +31,7 @@ all: $(IMAGE)
rm -f $@.$$$$
$(IMAGE): $(OBJ)
- $(CXX) $(CXXFLAGS) $(DEFINES) $(OBJ) $(LIBS) -o $@
+ $(CXX) $(CXXFLAGS) $(DEFINES) $(OBJ) $(LIBS) $(LDFLAGS) -o $@
ifneq "$(MAKECMDGOALS)" "clean"
-include $(SRC:.cpp=.d)