From d80ad500ee1ca803000eabb304abc29c0ad03707 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 30 Apr 2022 19:02:06 +0200 Subject: [PATCH] Do not pass linker flags during compilation. --- test/Makefile | 5 +++-- 1 file 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)