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

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Wed Sep 18 14:25:24 UTC 2013


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

----
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?


Enrico



More information about the Openembedded-core mailing list