diff mbox series

libtraceevent: Makefile - set LIBS as conditional assignment

Message ID 20220810235535.12887-1-warthog9@eaglescrag.net (mailing list archive)
State Accepted
Commit 7839fc2ac1af0a0e341edb5ca8fc223c9043d1a7
Headers show
Series libtraceevent: Makefile - set LIBS as conditional assignment | expand

Commit Message

John 'Warthog9' Hawley Aug. 10, 2022, 11:55 p.m. UTC
Need a way to override LIBS during certain compile operations (read:
clang seemingly), so adjusting this so that LIBS can be defined and
allow for overriding with specific intent to support package builds.

Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steven Rostedt Sept. 8, 2022, 10:15 p.m. UTC | #1
On Wed, 10 Aug 2022 16:55:35 -0700
"John 'Warthog9' Hawley (VMware)" <warthog9@eaglescrag.net> wrote:

> Need a way to override LIBS during certain compile operations (read:
> clang seemingly), so adjusting this so that LIBS can be defined and
> allow for overriding with specific intent to support package builds.
> 
> Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>


Applied. Thanks John!

-- Steve
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 4d9289d..a320523 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@  else
   CFLAGS := -g -Wall
 endif
 
-LIBS = -ldl
+LIBS ?= -ldl
 export LIBS
 
 set_plugin_dir := 1