]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
mpg123: fix module loading with libtool / !HAVE_DEVFILES
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 20 Oct 2011 14:07:46 +0000 (16:07 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 20 Oct 2011 14:10:10 +0000 (16:10 +0200)
mpg123 enables loadable modules support if libtool is detected, but
by default tries to load <module>.la, which we strip from the
rootfs unless HAVE_DEVFILES is enabled.

Fix it by directly loading .so files instead.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/mpg123/mpg123.mk

index c01c8adb4663bcc328a00b1e668370cf53abac57..8ea05a88f530ba3f6cb6555be58f7f4be70cb4be 100644 (file)
@@ -57,4 +57,11 @@ endif
 
 MPG123_CONF_OPT += --with-audio=$(shell echo $(MPG123_AUDIO) | tr ' ' ,)
 
+ifeq ($(BR2_PACKAGE_LIBTOOL),y)
+MPG123_DEPENDENCIES += libtool
+# .la files gets stripped unless HAVE_DEVFILES is enabled, so directly
+# load .so files rather than .la
+MPG123_CONF_OPT += --with-modules --with-module-suffix=.so
+endif
+
 $(eval $(call AUTOTARGETS))