1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

Build: add support for building on OpenBSD

This requires gcc8 from ports to build the Toolchain.
This commit is contained in:
joshua stein 2020-01-01 20:06:14 -06:00 committed by Andreas Kling
parent d61131945d
commit 5e430e4eb4
7 changed files with 81 additions and 26 deletions

View file

@ -77,10 +77,12 @@ echo "done"
printf "installing userland... "
if [ "$(uname)" != "Darwin" ]; then
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
if [ "$(uname -s)" = "Darwin" ]; then
find ../Userland/ -type f -perm +111 -exec cp {} mnt/bin/ \;
elif [ "$(uname -s)" = "OpenBSD" ]; then
find ../Userland/ -type f -perm -555 -exec cp {} mnt/bin/ \;
else
find ../Userland/ -type f -perm +111 -exec cp {} mnt/bin/ \;
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
fi
chmod 4755 mnt/bin/su
chmod 4755 mnt/bin/ping