Makefile help: setting HOTSPOT_EXTRA_SYSDEFS

David Holmes David.Holmes at
Wed Jun 16 01:27:05 UTC 2010

I originally asked this internally to my HS colleagues but alas no 
solution. Any Make gurus out there? ;-)

A further note: the obvious reason for this to fail would be because 
defs.make is not processed before launching the buildtree.make sub-make, 
but AFAICS it is processed.


David Holmes said the following on 06/15/10 19:14:
> If I set HOTSPOT_EXTRA_SYSDEFS in the environment or pass it as a 
> variable to the top-level make invocation then it works fine and 
> buildtree.make will see it and use it in the makefiles that it generates.
> However, I want to set it in the top-level defs.make based on some other 
> values. I do that and export it so that submakes will see it - but they 
> don't: buildtree.make sees HOTSPOT_EXTRA_SYSDEFS as empty.
> I've tried setting it using += and := but they both fail to set it for 
> the sub-make.
> Using "make -d" is no help at all as it doesn't show how it evaluates 
> things (the way sh -x does). :(
> Does anybody know how I can set this?
> Thanks,
> David

More information about the build-dev mailing list