adding CFLAGS or EXTRA_CFLAGS

Arkady arkady.miasnikov@gmail.com
Tue Aug 15 08:36:00 GMT 2017


I think that you can add simple define symbols, but you can not add
include paths. I maintain large chunks of C code in the kernel module.
I include all C and H files into a single STP file. I considered
patching the SystemTap source to be able to control include
directories. In my case this feature would be Ok. For the generic
framework which target non root uses this is probably not a great
idea.

On Tue, Aug 15, 2017 at 11:02 AM, Daniel Doron
<danielmeirdoron@gmail.com> wrote:
> Hi,
>
> Is it possible to send via stap extra cflags?
>
> I tried with "-D EXTRA_CFLAGS=-I$PWD"
>
> but I get:
> ERROR: Safety pattern mismatch for -D parameter
> ('EXTRA_CFLAGS=-I/home/danield/workspace/myproject' vs.
> '^[a-z_][a-z_0-9]*(=-?[a-z_0-9]+)?$') rc=1
>
>
> Thanks
> Daniel.



More information about the Systemtap mailing list