tools/rtla: Build with EXTRA_{C,LD}FLAGS
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.
Signed-off-by Ben Hutchings <[email protected]>
---
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)
Quoted 5 lines · Ben Hutchings
To allow for distributions and other builders to apply hardening policy and other customisation, append
EXTRA_CFLAGSandEXTRA_LDFLAGSto the corresponding variables.Signed-off-by Ben Hutchings <[email protected]>
Thanks!
-- Daniel