This fixes building, at least, toysh on OpenBSD (7.7) with
allnoconfig+CONFIG_SH=y. Some other toys are broken currently as
documented in PR #505. Hopefully this is more acceptable since
it touches far fewer files.
As an aside, building with both the default CC=`clang` (16.0.6) and
CC=`clang-19` (19.1.7) result in stripped toybox not being recognized
as executable, but I didn't investigate further. It's unlikely,
but possible, that my system is subtly broken and causing this.

# ./toybox sh
exec: Failed to execute process: './toybox' the file could not be run by the 
operating system.
exec: Maybe the interpreter directive (#! line) is broken?
# ldd toybox
toybox:
toybox: Exec format error
toybox: exit status 1
# file toybox
toybox: ELF 64-bit LSB shared object, x86-64, version 1
# generated/unstripped/toybox sh
$

Attachment: 0001-Fix-toysh-build-on-OpenBSD.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to