From dd9b0671503c27a6dca04b5d6d95b936cae60549 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Thu, 17 Aug 2023 16:49:57 -0500 Subject: move -lrt to linking section --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 8acb3ee..1abde0b 100644 --- a/makefile +++ b/makefile @@ -14,7 +14,8 @@ CXXFLAGS = -Wall -Wextra -Werror CXXFLAGS += -Isrc -std=c++20 -Wno-unused-function # Release flags -RELEASE_FLAGS = -O3 -lrt +RELEASE_CXXFLAGS = -O3 +RELEASE_LDFLAGS = -lrt # Debug flags DEBUGFLAGS = -ggdb -O0 @@ -43,7 +44,8 @@ DEBUG_OBJ_DIR = obj/debug CMD = wg2sd # Build rules -all: CXXFLAGS += $(RELEASE_FLAGS) +all: CXXFLAGS += $(RELEASE_CXXFLAGS) +all: LDFLAGS += $(RELEASE_LDFLAGS) all: targets targets: $(CMD) -- cgit v1.2.3