diff options
author | Madhavan Srinivasan <maddy@linux.ibm.com> | 2024-08-12 15:11:52 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-09-09 16:35:04 +1000 |
commit | 8c9c01ce695eea84d19482e7429e3d54ceb7585c (patch) | |
tree | a5428c5bb5157ce0ed0db59c60c919d7f9af2c3a /rust/helpers.c | |
parent | a5a670df1db79f4bb462601aa4cc03caffa761a2 (diff) |
selftests/powerpc: Allow building without static libc
Currently exec-target.c is linked statically with libc, which on Fedora
at least requires installing an additional package (glibc-static).
If that package is not installed the build fails with:
CC exec_target
/usr/bin/ld: cannot find -lc: No such file or directory
collect2: error: ld returned 1 exit status
All exec_target.c does is call sys_exit, which can be done easily enough
using inline assembly, and removes the requirement for a static libc to
be installed.
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240812094152.418586-1-maddy@linux.ibm.com
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions