jpeg: package is not autoreconfigurable and ships broken libtool, fixup manually
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 21 Feb 2011 21:01:39 +0000 (21:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 21 Feb 2011 21:01:39 +0000 (21:01 +0000)
SVN-Revision: 25654

libs/jpeg/Makefile

index 142bf9ac0f52622606ad6a0e24a84d605f13baf0..9261bb0ca499a0369b9f44e188f4cb366da6bbb3 100644 (file)
@@ -52,9 +52,19 @@ HOST_CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 
+define Build/Prepare
+       $(call Build/Prepare/Default)
+       (cd $(PKG_BUILD_DIR); \
+               rm -f ltconfig ltmain.sh libtool; \
+               ln -s `which true` ltconfig; \
+               ln -s $(STAGING_DIR)/host/bin/libtool libtool; \
+       )
+endef
+
 define Build/Compile
        $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{include,lib,bin,man/man1}
        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+               LIBTOOL="./libtool --tag=CC" \
                prefix="$(PKG_INSTALL_DIR)/usr" \
                exec_prefix="$(PKG_INSTALL_DIR)/usr" \
                all