[OE-core] [PATCH v2] kmod-native_git.bb: fix builds for hosts with older libc

Khem Raj raj.khem at gmail.com
Tue Aug 21 17:54:00 UTC 2012


On Tue, Aug 21, 2012 at 9:20 AM, Matthew McClintock <msm at freescale.com> wrote:
> +
> +do_configure_prepend (){
> +       if ! grep O_CLOEXEC -r ${includedir_native}/bits/fcntl.h; then
> +               export CFLAGS="$CFLAGS -D O_CLOEXEC=0"
> +       fi
> +}


IMO It would be safer to create a patch for kmod itself where you
define O_CLOEXEC if it
was not defined before. The above seems a bit risky




More information about the Openembedded-core mailing list