Compiler flags for libapi and libtraceevent
From: Ben Hutchings
Date: Mon Sep 10 2018 - 23:07:02 EST
I noticed that tools/lib/api/Makefile has these conditional
assignments, similar to tools/perf/Makefile.config:
ifeq ($(CC_NO_CLANG), 0)
CFLAGS += -O3
CFLAGS += -O6
CFLAGS += -D_FORTIFY_SOURCE
But it doesn't set DEBUG to 0 by default, and nothing under tools/perf
exports its value of CFLAGS or DEBUG.
tools/lib/traceevent/Makefile doesn't seem to have any logic to enable
optimisation or Fortify.
Shouldn't these libraries both have optimisations and Fortify turned on
by default, like perf itself?
Computers are not intelligent. They only think they are.
Description: This is a digitally signed message part