Skip to content

Commit

Permalink
Fix SDL build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Oct 4, 2024
1 parent 122549d commit ec65cfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ ifeq (,$(PKG_CONFIG))
SDL_CFLAGS := $(shell sdl2-config --cflags)
SDL_LDFLAGS := $(shell sdl2-config --libs) -lpthread

ifeq ($(PLATFORM),Darwin)
SDL_LDFLAGS += -framework AppKit
endif

# We cannot detect the presence of OpenAL dev headers,
# so we must do this manually
ifeq ($(ENABLE_OPENAL),1)
Expand Down

0 comments on commit ec65cfd

Please sign in to comment.