git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 73a6d35f732401e75ac8753163ba7a174080a779
parent 2498456bcce534507aee90cb79c0eecff93bb10d
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  5 Oct 2024 14:00:33 +0300

Support building SameBoy on Haiku

Diffstat:
MMakefile10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -129,8 +129,8 @@ endif # Find libraries with pkg-config if available. ifneq (, $(shell which pkg-config 2> $(NULL))) -# But not on macOS, it's annoying -ifneq ($(PLATFORM),Darwin) +# But not on macOS, it's annoying, and not on Haiku, where OpenGL is broken +ifeq ($(filter Darwin Haiku,$(PLATFORM)),) PKG_CONFIG := pkg-config endif endif @@ -272,7 +272,11 @@ LDFLAGS += -lxaudio2_9redist sdl: $(BIN)/SDL/xaudio2_9redist.dll endif else -LDFLAGS += -lc -lm -ldl +LDFLAGS += -lc -lm +# libdl is not available as a standalone library in Haiku +ifneq ($(PLATFORM),Haiku) +LDFLAGS += -ldl +endif endif ifeq ($(MAKECMDGOALS),_ios)

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.