Skip to content

Commit

Permalink
Add fno-omit-frame-pointer which may or not improve future stacktraces
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER committed Apr 12, 2017
1 parent e8563ac commit 40823c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ GIT_TAG := $(shell git describe --tags --abbrev=0)
# -pie -fPIE: For ASLR
# -g3: More debugging information
# _FILE_OFFSET_BITS=64: used by stat(). Avoids problems with files > 2 GB on 32bit machines
# -fsanitize=address: AddressSanitizer
# -fno-omit-frame-pointer: get nicer stacktraces
CC=gcc
HARDENING_FLAGS=-fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE
DEBUG_FLAGS=-g3 -rdynamic
DEBUG_FLAGS=-g3 -rdynamic -fno-omit-frame-pointer #-fsanitize=address
CCFLAGS=-I$(IDIR) -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 $(HARDENING_FLAGS) $(DEBUG_FLAGS) $(CFLAGS)
LIBS=-pthread -lm

Expand Down

0 comments on commit 40823c9

Please sign in to comment.