update ltmain.sh in libmad by running libtoolize during build
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Wed, 31 Oct 2007 06:40:36 +0000 (06:40 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Wed, 31 Oct 2007 06:40:36 +0000 (06:40 -0000)
package/libmad/libmad.mk

index deb7dede04a114eb9ce9b8d0288fe9043c45f664..4f3166e6ffd102536056c913504f035e97c320a9 100644 (file)
@@ -36,8 +36,13 @@ $(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked
        )
        touch $@
 
+# This rule runs 'libtoolize' since the ltmain.sh which comes in the tarball
+# is unsuitable with new libtool versions (causing shared libraries to build
+# without the .so extension).
+
 $(LIBMAD_DIR)/libmad.la: $(LIBMAD_DIR)/.configured
        rm -f $@
+       (cd $(LIBMAD_DIR); libtoolize --force)
        $(MAKE) -C $(LIBMAD_DIR)
 
 $(STAGING_DIR)/usr/lib/libmad.so: $(LIBMAD_DIR)/libmad.la