Minor fix to Makefile
This commit is contained in:
parent
f05103d871
commit
8e4c179747
1 changed files with 2 additions and 2 deletions
4
Makefile
4
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 $@)
|
||||
|
|
Loading…
Reference in a new issue