Re: [RFC 6/6] perf build: Introduce FEATURES_DUMP make variable

From: Jiri Olsa
Date: Wed Jan 13 2016 - 04:19:30 EST


On Tue, Jan 12, 2016 at 05:28:28PM +0800, Wangnan (F) wrote:

SNIP

> For example:
>
> $ make feature-dump LDFLAGS="-static"
> BUILD: Doing 'make -j24' parallel build
>
> Auto-detecting system features:
> <SNIP>
> ... zlib: [ on ]
> ... lzma: [ OFF ] <--- looks good. I don't have
> static lzma library
> ... get_cpuid: [ on ]
> ... bpf: [ on ]
>
>
> $ make feature-dump
> BUILD: Doing 'make -j24' parallel build
>
> Auto-detecting system features:
> <SNIP>
> ... zlib: [ on ]
> ... lzma: [ on ] <--- also good
> ... get_cpuid: [ on ]
> ... bpf: [ on ]
>
>
> $ make feature-dump LDFLAGS="-static"
> BUILD: Doing 'make -j24' parallel build
>
> Auto-detecting system features:
> <SNIP>
> ... zlib: [ on ]
> ... lzma: [ on ] <--- Bad...
> ... get_cpuid: [ on ]
> ... bpf: [ on ]
>
> Thank you.

right, it's because feature is not under build framework and
compilation does not care about flags change..

I'll try to check on that.. does this patch help to improve
the current speed or do you need to solve this to get substantial
speedup?

thanks,
jirka