all: compile with -D_FORTIFY_SOURCE=2

We'll see how this goes.
This commit is contained in:
Solomon Peachy 2019-07-01 09:35:08 -04:00
parent 2d5dfaf8ed
commit 4e435ae533
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ LN ?= ln
RM ?= rm
# Flags
CFLAGS += -Wall -Wextra -Wformat-security -g -Og -D_GNU_SOURCE -std=c99 # -Wconversion
CFLAGS += -Wall -Wextra -Wformat-security -g -Og -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -std=c99 # -Wconversion
LDFLAGS += `pkg-config --libs libusb-1.0`
CPPFLAGS += `pkg-config --cflags libusb-1.0`
# CPPFLAGS += -DLIBUSB_PRE_1_0_10

View File

@ -13,7 +13,7 @@ INSTALL ?= install
RM ?= rm
# Flags
CFLAGS += -Wall -Wextra -g -Os -std=c99 -fPIC --no-strict-overflow # -Wconversion
CFLAGS += -Wall -Wextra -g -Os -std=c99 -D_FORTIFY_SOURCE=2 -fPIC --no-strict-overflow # -Wconversion
#LDFLAGS +=
#CPPFLAGS +=
CFLAGS += -funit-at-a-time

View File

@ -14,7 +14,7 @@ INSTALL ?= install
RM ?= rm
# Flags
CFLAGS += -Wall -Wextra -g -Os -std=c99 -fPIC --no-strict-overflow # -Wconversion
CFLAGS += -Wall -Wextra -g -Os -std=c99 -D_FORTIFY_SOURCE=2 -fPIC --no-strict-overflow # -Wconversion
#LDFLAGS +=
#CPPFLAGS +=
CFLAGS += -funit-at-a-time