Description: use shared Ogg Vorbis
Index: Genesis-Plus-GX__mentors/Makefile.libretro
===================================================================
--- Genesis-Plus-GX__mentors.orig/Makefile.libretro	2015-09-17 19:29:17.000000000 -0300
+++ Genesis-Plus-GX__mentors/Makefile.libretro	2015-09-17 19:29:22.000000000 -0300
@@ -281,6 +281,10 @@
 endif
 
 LDFLAGS += $(LIBM)
+ifeq ($(SHARED_LIBVORBIS), 1)
+	LDFLAGS += -lvorbisfile
+# -lvorbisidec
+endif
 
 ifeq ($(DEBUG), 1)
 	CFLAGS += -O0 -g
@@ -294,7 +298,9 @@
 
 CORE_DIR := .
 
+ifeq ($(SHARED_LIBVORBIS),)
 TREMOR_SRC_DIR  := $(CORE_DIR)/core/tremor
+endif
 LIBRETRO_DIR	:= $(CORE_DIR)/libretro
 
 include $(LIBRETRO_DIR)/Makefile.common
@@ -305,7 +311,11 @@
 	LIBRETRO_CFLAGS := -DLOGSOUND
 endif
 
-DEFINES := -DUSE_LIBTREMOR
+ifeq ($(SHARED_LIBVORBIS), 1)
+	DEFINES := -DUSE_LIBVORBIS
+else
+	DEFINES := -DUSE_LIBTREMOR
+endif
 CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)
 
 ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
Index: Genesis-Plus-GX__mentors/libretro/Makefile.common
===================================================================
--- Genesis-Plus-GX__mentors.orig/libretro/Makefile.common	2015-09-17 19:29:17.000000000 -0300
+++ Genesis-Plus-GX__mentors/libretro/Makefile.common	2015-09-17 19:30:07.061249859 -0300
@@ -8,9 +8,13 @@
                    $(CORE_DIR)/core/cart_hw \
                    $(CORE_DIR)/core/cart_hw/svp
 
-SOURCES_C = $(foreach dir,$(GENPLUS_SRC_DIR),$(wildcard $(dir)/*.c)) \
-            $(foreach dir,$(TREMOR_SRC_DIR),$(wildcard $(dir)/*.c)) \
-            $(LIBRETRO_DIR)/libretro.c
+SOURCES_C = $(foreach dir,$(GENPLUS_SRC_DIR),$(wildcard $(dir)/*.c))
+
+ifeq ($(SHARED_LIBVORBIS),)
+SOURCES_C += $(foreach dir,$(TREMOR_SRC_DIR),$(wildcard $(dir)/*.c))
+endif
+
+SOURCES_C += $(LIBRETRO_DIR)/libretro.c
 
 SOURCES_C += $(LIBRETRO_DIR)/scrc32.c
 
