summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-07-01 09:35:08 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-07-01 09:36:42 -0400
commit30634ed23a22fe48efdf7560abbea6febb0988c1 (patch)
tree61041e3ec084542f761a42ab3a56a7da8aaad4bf
parent52493f7a5bed56438c824e2522b314153b25dbbf (diff)
downloadselphy_print-30634ed23a22fe48efdf7560abbea6febb0988c1.tar.gz
selphy_print-30634ed23a22fe48efdf7560abbea6febb0988c1.tar.bz2
selphy_print-30634ed23a22fe48efdf7560abbea6febb0988c1.zip
all: compile with -D_FORTIFY_SOURCE=2
We'll see how this goes.
-rw-r--r--Makefile2
-rw-r--r--lib6145/Makefile2
-rw-r--r--lib70x/Makefile2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 12889a5..a1f38a8 100644
--- a/Makefile
+++ b/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
diff --git a/lib6145/Makefile b/lib6145/Makefile
index 4068d4a..c984312 100644
--- a/lib6145/Makefile
+++ b/lib6145/Makefile
@@ -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
diff --git a/lib70x/Makefile b/lib70x/Makefile
index 0f959ef..178904f 100644
--- a/lib70x/Makefile
+++ b/lib70x/Makefile
@@ -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