mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 16:56:37 +01:00
This is a fix for the fix in YOCTO #14878. When the shebang is more than 128 characters the default shell /bin/sh is used instead of SDK shell as a fallback, which causes problems with LD_LIBRARY_PATH. With this patch shell usage is avoided as we use a C wrapper and unset LD_LIBRARY_PATH that way. [YOCTO #14892] (From OE-Core rev: 7cd6faf4e0147eef557f83fb266a25935e26efff) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
282 B
C
20 lines
282 B
C
/*
|
|
*
|
|
* Copyright (C) 2022 Wind River Systems
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
int main (int argc, char *argv[])
|
|
{
|
|
unsetenv("LD_LIBRARY_PATH");
|
|
execvp("target-rust-ccld-wrapper", argv);
|
|
|
|
return 0;
|
|
}
|