Re: [PATCH] libtracefs: Add Requires libtraceevent to pkg-config file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/22/21 9:54 PM, Steven Rostedt wrote:
> From e0e16d1a16749dccd3c00261e6dcb78f2e55e8ec Mon Sep 17 00:00:00 2001
> From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
> Date: Thu, 22 Jul 2021 15:44:55 -0400
> Subject: [PATCH] libtracefs: Add Requires libtraceevent to pkg-config file
> 
> If a developer uses libtracefs only, they should not need to know about
> libtraceevent just because libtracefs requires it.
> 
> The pkg-config pc file has an option to handle such cases, called
> "Requires:". Utilize this feature so that users using libtracefs only need
> to do:
> 
>   CFLAGS = `pkg-config --cflags --libs libtracefs`
> 
> And not:
> 
>   CFLAGS = `pkg-config --cflags --libs libtracefs libtraceevent`
> 
> As with the Requires option, pkg-config now produces:
> 
>  $ pkg-config --cflags --libs libtracefs
>  -I/usr/local/include/tracefs -I/usr/local/include/traceevent -ltracefs -ltraceevent
> 
> Reported-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

it works!

Tested-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>

-- Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux