Skip to content

Commit

Permalink
Support building SameBoy on Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Oct 5, 2024
1 parent 2498456 commit 73a6d35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 73a6d35

Please sign in to comment.