Skip to content

Commit

Permalink
[~] fixing CFLAGS for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed Apr 3, 2024
1 parent fddff8e commit cb7f468
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ INCLUDE_PATH := /usr/local/include/list

CC := gcc
CPPFLAGS := -Iinclude/
CFLAGS := -Wall -Wextra -Werror -pedantic -ansi -fPIC \
CFLAGS := -Wall -Wextra -Werror -pedantic -ansi -fPIC \
-fno-delete-null-pointer-checks -fno-strict-overflow \
-fno-strict-aliasing -ftrivial-auto-var-init=zero \
-Wformat -Wimplicit-fallthrough \
-U_FORTIFY_SOURCE -D_GLIBCXX_ASSERTIONS \
-fno-strict-aliasing -ftrivial-auto-var-init=zero \
-Wformat -Wimplicit-fallthrough \
-U_FORTIFY_SOURCE -D_GLIBCXX_ASSERTIONS \
-fstack-protector-strong

ifeq ($(PLATFORM),x86_64)
CFLAGS += -fcf-protection=full -Wl,-z,nodlopen -Wl,-z,noexecstack \
-Wl,-z,relro -Wl,-z,now -fstack-clash-protection \
-Wl,-z,relro -Wl,-z,now -fstack-clash-protection \
-fstrict-flex-arrays=3 -Wtrampolines
endif

Expand Down Expand Up @@ -61,7 +61,7 @@ liblist.a: $(OBJS)
@ar -rcs $@ $(OBJS)

tests_run: CFLAGS += -g --coverage
tests_run: fclean uninstall $(OBJS) $(TESTS_OBJS)
tests_run: fclean $(OBJS) $(TESTS_OBJS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(OBJS) $(TESTS_OBJS) -o unit_tests -lcriterion
@CRITERION_NO_EARLY_EXIT=1 ./unit_tests
@gcovr -e tests .
Expand Down

0 comments on commit cb7f468

Please sign in to comment.