mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	tools: runqslower: Add EXTRA_CFLAGS and EXTRA_LDFLAGS support
This makes it possible to add sanitizer flags. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20230210001210.395194-3-iii@linux.ibm.com
This commit is contained in:
		
							parent
							
								
									795deb3f97
								
							
						
					
					
						commit
						585bf4640e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -13,6 +13,8 @@ BPF_DESTDIR := $(BPFOBJ_OUTPUT)
 | 
				
			||||||
BPF_INCLUDE := $(BPF_DESTDIR)/include
 | 
					BPF_INCLUDE := $(BPF_DESTDIR)/include
 | 
				
			||||||
INCLUDES := -I$(OUTPUT) -I$(BPF_INCLUDE) -I$(abspath ../../include/uapi)
 | 
					INCLUDES := -I$(OUTPUT) -I$(BPF_INCLUDE) -I$(abspath ../../include/uapi)
 | 
				
			||||||
CFLAGS := -g -Wall $(CLANG_CROSS_FLAGS)
 | 
					CFLAGS := -g -Wall $(CLANG_CROSS_FLAGS)
 | 
				
			||||||
 | 
					CFLAGS += $(EXTRA_CFLAGS)
 | 
				
			||||||
 | 
					LDFLAGS += $(EXTRA_LDFLAGS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Try to detect best kernel BTF source
 | 
					# Try to detect best kernel BTF source
 | 
				
			||||||
KERNEL_REL := $(shell uname -r)
 | 
					KERNEL_REL := $(shell uname -r)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue