aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-17 16:49:57 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-17 16:49:57 -0500
commitdd9b0671503c27a6dca04b5d6d95b936cae60549 (patch)
tree31ad2637aabeb1066ccc627d6812246d6234fc3a /makefile
parent9db6018c00e4d6a7bba2ba0228b65cd3a1dfcbb7 (diff)
downloadwg2nd-dd9b0671503c27a6dca04b5d6d95b936cae60549.tar.xz
wg2nd-dd9b0671503c27a6dca04b5d6d95b936cae60549.zip
move -lrt to linking section
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files 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)