* [PATCH] tools/rtla: Build with EXTRA_{C,LD}FLAGS
@ 2022-07-16 13:48 Ben Hutchings
2022-07-20 12:32 ` Daniel Bristot de Oliveira
0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2022-07-16 13:48 UTC (permalink / raw)
To: Daniel Bristot de Oliveira, Steven Rostedt, linux-trace-devel
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
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 <benh@debian.org>
---
--- a/tools/tracing/rtla/Makefile
+++ b/tools/tracing/rtla/Makefile
@@ -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)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] tools/rtla: Build with EXTRA_{C,LD}FLAGS
2022-07-16 13:48 [PATCH] tools/rtla: Build with EXTRA_{C,LD}FLAGS Ben Hutchings
@ 2022-07-20 12:32 ` Daniel Bristot de Oliveira
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Bristot de Oliveira @ 2022-07-20 12:32 UTC (permalink / raw)
To: Ben Hutchings, Steven Rostedt, linux-trace-devel
On 7/16/22 15:48, Ben Hutchings wrote:
> 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 <benh@debian.org>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Thanks!
-- Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-20 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-16 13:48 [PATCH] tools/rtla: Build with EXTRA_{C,LD}FLAGS Ben Hutchings
2022-07-20 12:32 ` Daniel Bristot de Oliveira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).