Skip to content

Commit

Permalink
Switch to -fstack-protector-all
Browse files Browse the repository at this point in the history
The gcc that Travis CI uses does not known
-fstack-protector-strong yet:

$ make
gcc  -Wall -Wextra -DVERSION=\"v1.0-9-g29c1e52\" -g -fstack-protector-strong -o earlyoom kill.c main.c meminfo.c
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
make: *** [earlyoom] Error 1
  • Loading branch information
rfjakob committed Feb 11, 2018
1 parent 29c1e52 commit 633486a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION ?= $(shell git describe --tags --dirty 2> /dev/null)
CFLAGS += -Wall -Wextra -DVERSION=\"$(VERSION)\" -g -fstack-protector-strong
CFLAGS += -Wall -Wextra -DVERSION=\"$(VERSION)\" -g -fstack-protector-all

DESTDIR ?=
PREFIX ?= /usr/local
Expand Down

0 comments on commit 633486a

Please sign in to comment.