diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-17 16:49:57 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-17 16:49:57 -0500 |
commit | dd9b0671503c27a6dca04b5d6d95b936cae60549 (patch) | |
tree | 31ad2637aabeb1066ccc627d6812246d6234fc3a /makefile | |
parent | 9db6018c00e4d6a7bba2ba0228b65cd3a1dfcbb7 (diff) | |
download | wg2nd-dd9b0671503c27a6dca04b5d6d95b936cae60549.tar.xz wg2nd-dd9b0671503c27a6dca04b5d6d95b936cae60549.zip |
move -lrt to linking section
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |