Lines Matching refs:CFLAGS
9 CFLAGS := $(EXTRA_CFLAGS) $(EXTRA_WARNINGS) macro
21 ifeq (, $(findstring m32,$(CFLAGS)))
26 CFLAGS += -DARCH_X86_64
34 CFLAGS += -DHAVE_PERF_REGS
67 CFLAGS += -Werror
74 CFLAGS += -O6
80 CFLAGS += -DPARSER_DEBUG
83 CFLAGS += -fno-omit-frame-pointer
84 CFLAGS += -ggdb3
85 CFLAGS += -funwind-tables
86 CFLAGS += -Wall
87 CFLAGS += -Wextra
88 CFLAGS += -std=gnu99
92 ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -fstack-protector-all,-fstack-protector-all),…
93 CFLAGS += -fstack-protector-all
96 ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wstack-protector,-Wstack-protector),y)
97 CFLAGS += -Wstack-protector
100 ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wvolatile-register-var,-Wvolatile-register-v…
101 CFLAGS += -Wvolatile-register-var
105 ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -D_FORTIFY_SOURCE=2,-D_FORTIFY_SOURCE=2),y)
106 CFLAGS += -D_FORTIFY_SOURCE=2
110 CFLAGS += -I$(src-perf)/util/include
111 CFLAGS += -I$(src-perf)/arch/$(ARCH)/include
112 CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi
113 CFLAGS += -I$(srctree)/arch/$(ARCH)/include
114 CFLAGS += -I$(srctree)/include/uapi
115 CFLAGS += -I$(srctree)/include
120 CFLAGS += -I$(obj-perf)/util
121 CFLAGS += -I$(obj-perf)
124 CFLAGS += -I$(src-perf)/util
125 CFLAGS += -I$(src-perf)
126 CFLAGS += -I$(LIB_INCLUDE)
128 CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
131 ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y)
143 FLAGS_LIBELF=$(CFLAGS) $(LDFLAGS) $(EXTLIBS)
145 FLAGS_GLIBC=$(CFLAGS) $(LDFLAGS)
169 FLAGS_DWARF=$(CFLAGS) $(LIBDW_CFLAGS) -ldw -lz -lelf $(LIBDW_LDFLAGS) $(LDFLAGS) $(EXTLIBS)
178 CFLAGS += -DLIBELF_SUPPORT
179 FLAGS_LIBELF=$(CFLAGS) $(LDFLAGS) $(EXTLIBS)
181 CFLAGS += -DLIBELF_MMAP
184 CFLAGS += -DHAVE_ELF_GETPHDRNUM
195 CFLAGS += -DDWARF_SUPPORT $(LIBDW_CFLAGS)
204 CFLAGS += -DLIBELF_SUPPORT
205 FLAGS_LIBELF=$(CFLAGS) $(LDFLAGS) $(EXTLIBS)
207 CFLAGS += -DLIBELF_MMAP
224 FLAGS_UNWIND=$(LIBUNWIND_CFLAGS) $(CFLAGS) $(LIBUNWIND_LDFLAGS) $(LDFLAGS) $(EXTLIBS) $(LIBUNWIND_L…
232 CFLAGS += -DLIBUNWIND_SUPPORT
234 CFLAGS += $(LIBUNWIND_CFLAGS)
239 FLAGS_LIBAUDIT = $(CFLAGS) $(LDFLAGS) -laudit
244 CFLAGS += -DLIBAUDIT_SUPPORT
254 FLAGS_SLANG=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) -I/usr/include/slang -lslang
260 CFLAGS += -I/usr/include/slang
261 CFLAGS += -DSLANG_SUPPORT
267 …FLAGS_GTK2=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
273 CFLAGS += -DHAVE_GTK_INFO_BAR
275 CFLAGS += -DGTK2_SUPPORT
276 CFLAGS += $(shell pkg-config --cflags gtk+-2.0 2>/dev/null)
285 CFLAGS += -DNO_LIBPERL
294 CFLAGS += -DNO_LIBPERL
304 CFLAGS += -DNO_LIBPYTHON
366 CFLAGS += -DNO_DEMANGLE
370 CFLAGS += -DHAVE_CPLUS_DEMANGLE
372 FLAGS_BFD=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) -DPACKAGE='perf' -lbfd
387 FLAGS_CPLUS_DEMANGLE=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) -liberty
391 CFLAGS += -DHAVE_CPLUS_DEMANGLE
394 CFLAGS += -DNO_DEMANGLE
404 CFLAGS += -DHAVE_STRLCPY
410 CFLAGS += -DHAVE_ON_EXIT
416 CFLAGS += -DBACKTRACE_SUPPORT
421 FLAGS_LIBNUMA = $(CFLAGS) $(LDFLAGS) -lnuma
426 CFLAGS += -DLIBNUMA_SUPPORT