Changes needed to Makefile and scripts for OpenBSD
alexshendi opened this issue · 2 comments
alexshendi commented
- The scripts in scripts/*.sh: Change first line from "#!/bin/bash" to "#!/usr/bin/env bash".
- Add the following section to Makefile (e.g. after line 4):
ifeq ($(UNAME),OpenBSD)
OPEN=xdg-open
COMPILER=clang
FLAGS=-Wall -Werror -Wextra -Wpedantic -O2
# -Wno-misleading-indentation silences warnings which are entirely spurious.
FLAGS:=$(FLAGS) -Wno-misleading-indentation -Wno-unknown-warning-option
FLAGS:=$(FLAGS) -lm
# FLAGS:=$(FLAGS) -fsanitize=undefined
# FLAGS:=$(FLAGS) -fsanitize=address
endif
Packages needed:
- gmake
- sdl2
- sdl2-image
- vim (for xxd)
I only tried "native" decker.
JohnEarnest commented
Seems straightforward. How's that? (see above)
alexshendi commented
Well it worked for me (on OpenBSD 7.3 on amd64 and i386). I can't imagine the change
hurts Linux and Darwin.
Am 19. Mai 2023 18:59:37 MESZ schrieb John Earnest ***@***.***>:
…Seems straightforward. How's that?