Commit b15476ec authored by Vladimír Čunát's avatar Vladimír Čunát

make: don't magically -D_FORTIFY_SOURCE=2

This is just annoying for development.  You want -O0 or -Og,
and consequently you get lots of warnings that are difficult to disable.

I believe hardening options are more of a responsibility/choice of the
caller, typically distributions have some general policies and pass the
flags (almost) uniformly to all packages.  I can't see any part of kresd
being so specific to warrant explicit hardening.
parent 343bf36c
- don't magically -D_FORTIFY_SOURCE=2 in some cases
Knot Resolver 2.1.1 (2018-02-23) Knot Resolver 2.1.1 (2018-02-23)
================================ ================================
......
...@@ -43,6 +43,3 @@ BUILD_CFLAGS += -fvisibility=hidden ...@@ -43,6 +43,3 @@ BUILD_CFLAGS += -fvisibility=hidden
ifeq (,$(findstring -O,$(CFLAGS))) ifeq (,$(findstring -O,$(CFLAGS)))
BUILD_CFLAGS += -O2 BUILD_CFLAGS += -O2
endif endif
ifeq (,$(findstring -fsanitize=address,$(CFLAGS)))
BUILD_CFLAGS += -D_FORTIFY_SOURCE=2
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment