[OE-core] [PATCH] perf: Add LDFLAGS to allow build of old kernels without patching

Bruce Ashfield bruce.ashfield at gmail.com
Wed Sep 18 14:39:35 UTC 2013


On Wed, Sep 18, 2013 at 10:25 AM, Enrico Scholz
<enrico.scholz at sigma-chemnitz.de> wrote:
> Otavio Salvador <otavio-fKevB0iiKLMBZ+LybsDmbA at public.gmane.org> writes:
>
>> The LDFLAGS is required or some old kernels fails due missing
>> symbols and this is preferred than requiring patches to every old
>> supported kernel.
>> ...
>> +LDFLAGS="-ldl -lutil"
>
> What is with -Wl,-as-needed or the gnu-hash ldflags which are applied
> usually?  Perhaps, hacks like

We don't want to influence the perf build from the build system, unless we
absolutely have to. We want to use the flags and configs that are contained
within the kernel, just as we do with anything from the kernel tree in general.

>
> ----
> do_configure_prepend() {
>   cat <<"EOF" > ${S}/tools/perf/x.mk
> include Makefile
> CFLAGS += ${CFLAGS}
> LDLAGS += ${LDFLAGS}
> EOF
> }
>
> EXTRA_OEMAKE = ... -f x.mk
> ----
>
> would be a better way?

We only want to influence LDFLAGS at the moment, and we'll work to get an
EXTRA_LDFLAGS into the mainline kernel, so creating less scaffolding, versus
more, is what we are shooting for here :)

Bruce

>
>
> Enrico
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the Openembedded-core mailing list