[ping][PATCH 04/19] Use MODULE_NAME in stap-probe instead of IN_LIB

Siddhesh Poyarekar siddhesh@redhat.com
Wed Nov 19 07:10:00 GMT 2014


Sorry, I missed this one.

On Fri, Nov 07, 2014 at 03:32:06PM -0800, Roland McGrath wrote:
> > 	* scripts/gen-libc-modules.awk (END): Generate defines for
> > 	MODULE_NAME.
> 
> Why is this better than just putting -DMODULE_NAME=... in CPPFLAGS
> as with IN_MODULE?  In fact, you could pass only -DMODULE_NAME=...
> and then use PASTE(MODULE_,MODULE_NAME).

I don't think that is possible.  We cannot paste macro definitions.
That is, I cannot do:

#define MODULE_ ## libc 42

Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20141119/c3daa79f/attachment.sig>


More information about the Libc-alpha mailing list