Skip to content

Commit a473d2e

Browse files
authored
Merge pull request #416 from phcoder/mixer
Update mixer to thread-safe version
2 parents 4501fe9 + f6c4181 commit a473d2e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Makefile.common

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ifneq ($(STATIC_LINKING), 1)
4242
$(CORE_DIR)/vendor/libretro-common/formats/wav/rwav.c \
4343
$(CORE_DIR)/vendor/libretro-common/lists/string_list.c \
4444
$(CORE_DIR)/vendor/libretro-common/memmap/memalign.c \
45+
$(CORE_DIR)/vendor/libretro-common/rthreads/rthreads.c \
4546
$(CORE_DIR)/vendor/libretro-common/streams/file_stream.c \
4647
$(CORE_DIR)/vendor/libretro-common/string/stdstring.c \
4748
$(CORE_DIR)/vendor/libretro-common/vfs/vfs_implementation.c \

Makefile.libretro

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ifneq ($(findstring SunOS,$(shell uname -a)),)
6161
else
6262
SHARED := -shared -Wl,--version-script=link.T -Wl,-no-undefined
6363
endif
64+
LDFLAGS += -lpthread
6465

6566
else ifeq ($(platform), linux-portable)
6667
TARGET := $(TARGET_NAME)_libretro.so
@@ -354,7 +355,7 @@ else ifeq ($(platform), gcw0)
354355
AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar
355356
fpic := -fPIC
356357
SHARED := -shared -Wl,--version-script=link.T -Wl,-no-undefined
357-
PLATFORM_DEFINES += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
358+
PLATFORM_DEFINES += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float -DDINGUX_BETA=1
358359
EXTERNAL_ZLIB = 1
359360
# RS90
360361
else ifeq ($(platform), rs90)
@@ -376,7 +377,8 @@ else ifeq ($(platform), retrofw)
376377
AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
377378
fpic := -fPIC
378379
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
379-
CFLAGS += -ffast-math -march=mips32 -mtune=mips32 -mhard-float
380+
FLAGS += -ffast-math -march=mips32 -mtune=mips32 -mhard-float
381+
PLATFORM_DEFINES += -DDINGUX_BETA=1
380382
LIBS = -lm
381383

382384
# MIYOO
@@ -684,6 +686,7 @@ ifeq ($(platform), psp1)
684686
INCFLAGS += -I$(shell psp-config --pspsdk-path)/include
685687
endif
686688

689+
FLAGS += -DHAVE_THREADS=1
687690

688691
ifneq (,$(findstring msvc,$(platform)))
689692
OBJOUT = -Fo

jni/Android.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CORE_DIR = $(LOCAL_PATH)/..
44

55
include $(CORE_DIR)/Makefile.common
66

7-
COREFLAGS := -D__LIBRETRO__ -DANDROID $(FLAGS)
7+
COREFLAGS := -D__LIBRETRO__ -DANDROID -DHAVE_THREADS=1 $(FLAGS)
88

99
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
1010
ifneq ($(GIT_VERSION)," unknown")

0 commit comments

Comments
 (0)