aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneonloop2021-04-17 21:04:44 +0000
committerneonloop2021-04-17 21:04:44 +0000
commita59eed321aea89c896d5476bf9cd64c15561d77e (patch)
tree02acdc52def8567b3a34fe53c807fe2ac8425123
parent69a77dfd51dd75d34fdf2f465c21a462546ceb2d (diff)
downloadtrimui-toolchain-a59eed321aea89c896d5476bf9cd64c15561d77e.tar.gz
trimui-toolchain-a59eed321aea89c896d5476bf9cd64c15561d77e.tar.bz2
trimui-toolchain-a59eed321aea89c896d5476bf9cd64c15561d77e.zip
Allows static linking of libogg/vorbis and libmad from sdl_mixer
-rw-r--r--sdl_mixer.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sdl_mixer.patch b/sdl_mixer.patch
new file mode 100644
index 0000000..5ac3c1e
--- /dev/null
+++ b/sdl_mixer.patch
@@ -0,0 +1,21 @@
+diff --git a/package/sdl_mixer/sdl_mixer.mk b/package/sdl_mixer/sdl_mixer.mk
+index 897b308e9d..5d95f9b463 100644
+--- ./package/sdl_mixer/sdl_mixer.mk
++++ ./package/sdl_mixer/sdl_mixer.mk
+@@ -26,14 +26,14 @@ SDL_MIXER_CONF_OPTS = \
+ --disable-music-flac # configure script fails when cross compiling
+
+ ifeq ($(BR2_PACKAGE_LIBMAD),y)
+-SDL_MIXER_CONF_OPTS += --enable-music-mp3-mad-gpl
++SDL_MIXER_CONF_OPTS += --enable-music-mp3-mad-gpl --disable-music-mp3-mad-gpl-shared
+ SDL_MIXER_DEPENDENCIES += libmad
+ else
+ SDL_MIXER_CONF_OPTS += --disable-music-mp3-mad-gpl
+ endif
+
+ ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
+-SDL_MIXER_CONF_OPTS += --enable-music-ogg
++SDL_MIXER_CONF_OPTS += --enable-music-ogg --disable-music-ogg-shared
+ SDL_MIXER_DEPENDENCIES += libvorbis
+ else
+ SDL_MIXER_CONF_OPTS += --disable-music-ogg