Skip to contentSkip to conversation

tools/rtla: Build with EXTRA_{C,LD}FLAGS

PATCH In review Ben Hutchings 2 participants 2 messages Jul 16, 2022 – Jul 20, 2022 Real-time Linux Analysis (rtla) tools

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/rtla: Build with EXTRA_{C,LD}FLAGS

To allow for distributions and other builders to apply hardening policy and other customisation, append EXTRA_CFLAGS and EXTRA_LDFLAGS to the corresponding variables.

---

tools/tracing/rtla/Makefile +2 -2
@@ -30,8 +30,8 @@ WOPTS	:= 	-Wall -Werror=format-security
 
 TRACEFS_HEADERS	:= $$($(PKG_CONFIG) --cflags libtracefs)
 
-CFLAGS	:=	-O -g -DVERSION=\"$(VERSION)\" $(FOPTS) $(MOPTS) $(WOPTS) $(TRACEFS_HEADERS)
-LDFLAGS	:=	-ggdb
+CFLAGS	:=	-O -g -DVERSION=\"$(VERSION)\" $(FOPTS) $(MOPTS) $(WOPTS) $(TRACEFS_HEADERS) $(EXTRA_CFLAGS)
+LDFLAGS	:=	-ggdb $(EXTRA_LDFLAGS)
 LIBS	:=	$$($(PKG_CONFIG) --libs libtracefs)
 
 SRC	:=	$(wildcard src/*.c)