[OE-core] [PATCH 1/1] flex: fix m4 issue on target

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Tue Nov 5 16:16:45 UTC 2013


Laurentiu Palcu
<laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w at public.gmane.org> writes:

> Flex needs m4 to run (see below) and, since the create_wrapper
> introduces a bash dependency, export the right m4 path when /etc/profile
> is sourced by the shell.
>
> Snippet from the flex documentation:
> "The macro processor m4 must be installed wherever flex is installed.
> <...>
> m4 is only required at the time you run flex."

Content at profile.d/ won't be evaluated when program is started without
a shell (e.g. by 'execlp("flex", "flex", ...)').  


> [YOCTO #5329]

This should be solved by defining a correct path for the m4 binary at
build time.

EXTRA_OECONF += " ac_cv_path_M4=${M4}"
EXTRA_OEMAKE += " m4=${M4_class-native}"

is probably a better solution.



Enrico



More information about the Openembedded-core mailing list