From 8e4c179747d3c0f8a00a40dd856f6a572bb1be02 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 23 Apr 2024 15:55:48 +0900 Subject: [PATCH] Minor fix to Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 00dfa38..1dc34c2 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ COMMON_CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++20 \ -fstrict-flex-arrays=3 \ -fstack-clash-protection -fstack-protector-strong \ -Wl,-z,nodlopen -Wl,-z,noexecstack \ - -Wl,-z,relro -Wl,-z,now + -Wl,-z,relro -Wl,-z,now -fPIE ifdef DEBUG CXXFLAGS = -Og -g ${COMMON_CXXFLAGS} else @@ -21,7 +21,7 @@ OBJECTS = $(addprefix ${OBJDIR}/,$(patsubst %.cpp,%.cpp.o,${SOURCES})) all: KoreanNumbers KoreanNumbers: ${OBJECTS} - $(CXX) $(CXXFLAGS) -fPIE -pie -o KoreanNumbers $^ + $(CXX) $(CXXFLAGS) -pie -o KoreanNumbers $^ ${OBJDIR}/%.cpp.o: %.cpp @mkdir -p $(dir $@)