all: compile with -D_FORTIFY_SOURCE=2

We'll see how this goes.
master
Solomon Peachy 4 years ago
parent 2d5dfaf8ed
commit 4e435ae533
  1. 2
      Makefile
  2. 2
      lib6145/Makefile
  3. 2
      lib70x/Makefile

@ -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

@ -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

@ -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

Loading…
Cancel
Save