Re: Compiler flags for libapi and libtraceevent

2018-09-13 Thread Jiri Olsa
On Tue, Sep 11, 2018 at 04:06:46AM +0100, Ben Hutchings wrote: > I noticed that tools/lib/api/Makefile has these conditional > assignments, similar to tools/perf/Makefile.config: > > ifeq ($(DEBUG),0) > ifeq ($(CC_NO_CLANG), 0) > CFLAGS += -O3 > else > CFLAGS += -O6 > endif > endif > > ifeq

Re: Compiler flags for libapi and libtraceevent

2018-09-13 Thread Jiri Olsa
On Tue, Sep 11, 2018 at 04:06:46AM +0100, Ben Hutchings wrote: > I noticed that tools/lib/api/Makefile has these conditional > assignments, similar to tools/perf/Makefile.config: > > ifeq ($(DEBUG),0) > ifeq ($(CC_NO_CLANG), 0) > CFLAGS += -O3 > else > CFLAGS += -O6 > endif > endif > > ifeq

Compiler flags for libapi and libtraceevent

2018-09-10 Thread Ben Hutchings
I noticed that tools/lib/api/Makefile has these conditional assignments, similar to tools/perf/Makefile.config: ifeq ($(DEBUG),0) ifeq ($(CC_NO_CLANG), 0) CFLAGS += -O3 else CFLAGS += -O6 endif endif ifeq ($(DEBUG),0) CFLAGS += -D_FORTIFY_SOURCE endif But it doesn't set DEBUG to 0 by

Compiler flags for libapi and libtraceevent

2018-09-10 Thread Ben Hutchings
I noticed that tools/lib/api/Makefile has these conditional assignments, similar to tools/perf/Makefile.config: ifeq ($(DEBUG),0) ifeq ($(CC_NO_CLANG), 0) CFLAGS += -O3 else CFLAGS += -O6 endif endif ifeq ($(DEBUG),0) CFLAGS += -D_FORTIFY_SOURCE endif But it doesn't set DEBUG to 0 by