summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/files/target-rust-ccld.c
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/files/target-rust-ccld.c')
-rw-r--r--meta/recipes-devtools/rust/files/target-rust-ccld.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/target-rust-ccld.c b/meta/recipes-devtools/rust/files/target-rust-ccld.c
new file mode 100644
index 0000000000..d3d491fb60
--- /dev/null
+++ b/meta/recipes-devtools/rust/files/target-rust-ccld.c
@@ -0,0 +1,19 @@
1/*
2*
3* Copyright (C) 2022 Wind River Systems
4*
5* SPDX-License-Identifier: MIT
6*
7*/
8
9#include <string.h>
10#include <stdlib.h>
11#include <unistd.h>
12
13int main (int argc, char *argv[])
14{
15 unsetenv("LD_LIBRARY_PATH");
16 execvp("target-rust-ccld-wrapper", argv);
17
18 return 0;
19}