aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libretro
diff options
context:
space:
mode:
authorretro-wertz2019-03-07 17:34:09 +0800
committerretro-wertz2019-03-07 17:34:09 +0800
commit958c9818cc58f37048e80c99e711f619fc84de3c (patch)
treedd0fe125dc5f730ea81371c1a2a2e257ed903dfb /Makefile.libretro
parent8569f7c3abe705930306d7537cc0f7e53e63bc19 (diff)
downloadpcsx_rearmed-958c9818cc58f37048e80c99e711f619fc84de3c.tar.gz
pcsx_rearmed-958c9818cc58f37048e80c99e711f619fc84de3c.tar.bz2
pcsx_rearmed-958c9818cc58f37048e80c99e711f619fc84de3c.zip
Fix CD audio not playing on some platforms
Diffstat (limited to 'Makefile.libretro')
-rw-r--r--Makefile.libretro6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index a8c8c4a..28a47fd 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -36,6 +36,7 @@ LIBDL := -lroot -lnetwork
else
LIBDL := -ldl
endif
+LIBM := -lm
MMAP_WIN32=0
EXTRA_LDFLAGS =
@@ -54,6 +55,7 @@ else ifeq ($(platform), linux-portable)
LIBZ :=
LIBPTHREAD :=
LIBDL :=
+ LIBM :=
NO_UNDEF_CHECK = 1
# OS X
@@ -215,6 +217,7 @@ else ifeq ($(platform), qnx)
MAIN_LDLIBS += -lsocket
LIBPTHREAD :=
LIBDL :=
+ LIBM :=
#Raspberry Pi 2
else ifeq ($(platform), rpi2)
@@ -317,11 +320,12 @@ else
MAIN_LDLIBS += -lws2_32
LIBPTHREAD :=
LIBDL :=
+ LIBM :=
endif
CFLAGS += $(fpic)
MAIN_LDFLAGS += -shared
-MAIN_LDLIBS += $(LIBPTHREAD) $(LIBDL) $(LIBZ)
+MAIN_LDLIBS += $(LIBPTHREAD) $(LIBM) $(LIBDL) $(LIBZ)
# try to autodetect stuff for the lazy
ifndef ARCH