File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ $(call set-feature, Zifencei)
84
84
85
85
# Experimental SDL oriented system calls
86
86
ENABLE_SDL ?= 1
87
+ ifneq ("$(CC_IS_EMCC ) ", "1") # note that emcc generates port SDL headers/library, so it does not requires system SDL headers/library
87
88
ifeq ($(call has, SDL) , 1)
88
89
ifeq (, $(shell which sdl2-config) )
89
90
$(warning No sdl2-config in $$PATH. Check SDL2 installation in advance)
@@ -101,6 +102,7 @@ $(OUT)/syscall_sdl.o: CFLAGS += $(shell sdl2-config --cflags)
101
102
LDFLAGS += $(shell sdl2-config --libs) -pthread
102
103
LDFLAGS += $(shell pkg-config --libs SDL2_mixer)
103
104
endif
105
+ endif
104
106
105
107
ENABLE_GDBSTUB ?= 0
106
108
$(call set-feature, GDBSTUB)
@@ -148,6 +150,8 @@ endif
148
150
ifeq ("$(CC_IS_EMCC ) ", "1")
149
151
ifeq ($(call has, SDL) , 1)
150
152
CFLAGS_emcc += -sUSE_SDL=2 -sSDL2_MIXER_FORMATS=wav,mid -sUSE_SDL_MIXER=2
153
+ OBJS_EXT += syscall_sdl.o
154
+ LDFLAGS += -pthread
151
155
endif
152
156
endif
153
157
You can’t perform that action at this time.
0 commit comments