Skip to content

Commit

Permalink
Makefile: Build with optimizations enabled.
Browse files Browse the repository at this point in the history
FORTIFY_SOURCE technically requires building with optimization.

Resolves: #1
  • Loading branch information
InterLinked1 committed Sep 20, 2024
1 parent 8ff1bb1 commit 6a644fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

CC = gcc
CFLAGS = -Wall -Werror -Wunused -Wextra -Wmaybe-uninitialized -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-declarations -Wmissing-format-attribute -Wnull-dereference -Wformat=2 -Wshadow -Wsizeof-pointer-memaccess -std=gnu99 -pthread -O0 -g -Wstack-protector -fno-omit-frame-pointer -fwrapv -D_FORTIFY_SOURCE=2
CFLAGS = -Wall -Werror -Wunused -Wextra -Wmaybe-uninitialized -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-declarations -Wmissing-format-attribute -Wnull-dereference -Wformat=2 -Wshadow -Wsizeof-pointer-memaccess -std=gnu99 -pthread -O3 -g -Wstack-protector -fno-omit-frame-pointer -fwrapv -D_FORTIFY_SOURCE=2
EXE = irc
LIBNAME = libirc
RM = rm -f
Expand All @@ -28,7 +28,7 @@ client : client.o
$(CC) $(CFLAGS) -o $(EXE) $< -lirc

%.o : %.c
$(CC) $(CFLAGS) -fPIC -c $^
$(CC) $(CFLAGS) -fPIC -c -Wno-unused-result $^

clean :
$(RM) *.i *.o $(EXE)
Expand Down

0 comments on commit 6a644fa

Please sign in to comment.